From f9d810d991ebe553711734bc5beebe7a1f48fc0d Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Wed, 13 Jan 2021 18:30:43 +0100 Subject: [PATCH 1/4] Add basic workflow that compiles the binary Signed-off-by: Marco Franssen --- .github/workflows/golang.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/golang.yml 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 From 21e1ef590b8c74334a47eb0f950c748e20e988bf Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Wed, 13 Jan 2021 18:33:01 +0100 Subject: [PATCH 2/4] Add binary to .gitignore Signed-off-by: Marco Franssen --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..0840ec7b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nv2 From 02703972ddb1ac577246a6f9c14614c6afe8988b Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Wed, 13 Jan 2021 18:32:09 +0100 Subject: [PATCH 3/4] Add dependabot for Go dependencies Signed-off-by: Marco Franssen --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..6bca6ecf2 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# 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" From 670ee67d9f722a10bc72472ae950e997657d8425 Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Wed, 13 Jan 2021 18:31:42 +0100 Subject: [PATCH 4/4] Add dependabot for github-actions Signed-off-by: Marco Franssen --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6bca6ecf2..715f5b432 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,10 @@ updates: 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"