From bea09bb3ed27aa2cad29e130b1849649646fd927 Mon Sep 17 00:00:00 2001 From: Dom Del Nano Date: Sat, 15 Apr 2023 16:15:03 -0700 Subject: [PATCH] Add depndabot and ci job for running go tests. Ensure go versions are consistent --- .github/dependabot.yml | 6 ++++++ .github/workflows/go-test.yml | 24 ++++++++++++++++++++++++ .github/workflows/release.yml | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/go-test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2fa7d77 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "gomod" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 0000000..88c1220 --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,24 @@ +name: go-test +on: + push: + branches: + - 'main' + pull_request: + +permissions: + contents: read + +jobs: + go-tests: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Unshallow + run: git fetch --prune --unshallow + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + - name: Run go tests + run: go test -race -count 1 ./... -timeout=3m diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dfde89..5f1061c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.16 - name: Describe plugin id: plugin_describe run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')"