Skip to content

Bump github.com/golangci/golangci-lint/v2 from 2.8.0 to 2.11.3 in /tools #121

Bump github.com/golangci/golangci-lint/v2 from 2.8.0 to 2.11.3 in /tools

Bump github.com/golangci/golangci-lint/v2 from 2.8.0 to 2.11.3 in /tools #121

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
target:
- unit-test-1-cpu
- unit-test-2-cpu
- unit-test-4-cpu
- unit-test-4-cpu-race
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
check-latest: false
- name: Run test on ${{ matrix.target }}
env:
TARGET: ${{ matrix.target }}
TIMEOUT: 30m
run: |
case "${TARGET}" in
unit-test-1-cpu)
CPU=1 make test
;;
unit-test-2-cpu)
CPU=2 make test
;;
unit-test-4-cpu)
CPU=4 make test
;;
unit-test-4-cpu-race)
CPU=4 ENABLE_RACE=true make test
;;
*)
echo "Failed to find target"
exit 1
;;
esac