diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..715f5b432 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "gomod" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + + - package-ecosystem: "github-actions" + # Workflow files stored in the + # default location of `.github/workflows` + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml new file mode 100644 index 000000000..160d321d5 --- /dev/null +++ b/.github/workflows/golang.yml @@ -0,0 +1,43 @@ +name: Go CI + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-20.04 + + name: Continuous Integration + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + + strategy: + matrix: + go-version: [1.14, 1.15] + + fail-fast: true + + steps: + - name: Set up Go ${{ matrix.go-version }} + uses: actions/setup-go@v2.1.3 + with: + go-version: ${{ matrix.go-version }} + + - name: Check out code + uses: actions/checkout@v2 + + - name: Cache Go modules + uses: actions/cache@v2 + id: go-mod-cache + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + + - name: Get dependencies + run: go mod download + + - name: Build + run: | + go build ./cmd/nv2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..0840ec7b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nv2