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)