From 24b66080095e4ce4c763aafe5e03265ea67e6d67 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Thu, 20 Jul 2023 09:01:34 -0500 Subject: [PATCH] build: run go1.20.5 and go1.20.6 --- .github/workflows/{go.yml => go1-20-5.yml} | 0 .github/workflows/go1-20-6.yml | 37 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) rename .github/workflows/{go.yml => go1-20-5.yml} (100%) create mode 100644 .github/workflows/go1-20-6.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go1-20-5.yml similarity index 100% rename from .github/workflows/go.yml rename to .github/workflows/go1-20-5.yml diff --git a/.github/workflows/go1-20-6.yml b/.github/workflows/go1-20-6.yml new file mode 100644 index 0000000..e88bf96 --- /dev/null +++ b/.github/workflows/go1-20-6.yml @@ -0,0 +1,37 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + name: Go Build + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Set up Go 1.x + uses: actions/setup-go@v4 + with: + go-version: '= 1.20.6' + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Install make (Windows) + if: runner.os == 'Windows' + run: choco install -y make mingw + + - name: Check + run: make check + env: + GOLANGCI_LINTERS: gosec + + - name: Upload Code Coverage + if: runner.os == 'Linux' + run: bash <(curl -s https://codecov.io/bash)