Bump actions/setup-go from 6 to 7 #1868
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: [push, pull_request] | |
| name: build | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: [1.25.x, 1.26.x] | |
| os: [ubuntu-24.04, macos-15-intel, macos-26, windows-latest] | |
| targetplatform: [x86, x64] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| cache: false | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Get dependencies | |
| run: | | |
| env GO111MODULE=on go vet ./... | |
| - name: Build | |
| run: go build -v . | |
| - name: Build on ARM and RISC-V | |
| if: runner.os == 'Linux' | |
| run: | | |
| GOARCH=arm GOARM=5 go build . | |
| GOARCH=arm GOARM=6 go build . | |
| GOARCH=arm GOARM=7 go build . | |
| GOARCH=arm64 go build . | |
| GOARCH=arm64 GOOS=android go build . | |
| GOARCH=riscv64 go build . | |
| - name: Test | |
| run: env GO111MODULE=on go test -v -timeout 60m -race ./... -coverprofile='coverage.txt' -covermode=atomic | |
| - name: Codecov | |
| uses: codecov/codecov-action@v7 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: coverage.txt | |
| flags: unittests | |
| name: codecov-umbrella |