| 1 |
name: Test fastwalk on Linux |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: [master] |
| 5 |
pull_request: |
| 6 |
branches: [master] |
| 7 |
jobs: |
| 8 |
build: |
| 9 |
runs-on: ubuntu-latest |
| 10 |
strategy: |
| 11 |
# Test all supported versions on Linux (since it's fast) |
| 12 |
matrix: |
| 13 |
go: ['1.21', '1.22', '1.23', '1.24', '1.25'] |
| 14 |
steps: |
| 15 |
- uses: actions/checkout@v5 |
| 16 |
with: |
| 17 |
fetch-depth: 1 |
| 18 |
- name: Set up Go |
| 19 |
uses: actions/setup-go@v6 |
| 20 |
with: |
| 21 |
go-version: ${{ matrix.go }} |
| 22 |
- name: Test |
| 23 |
run: go test -coverprofile=coverage.txt -race ./... |
| 24 |
- name: Test Builds |
| 25 |
run: make test_build --jobs=4 |
| 26 |
- name: Upload coverage reports to Codecov |
| 27 |
uses: codecov/codecov-action@v5 |
| 28 |
with: |
| 29 |
token: ${{ secrets.CODECOV_TOKEN }} |