Debian Codegraph @

.github/workflows/go.yml

raw symbols SCIP
1 name: Go
2
3 on:
4 push:
5 branches: [ "master" ]
6 pull_request:
7 branches: [ "master" ]
8
9 jobs:
10
11 build:
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 go-version: [ '1.21.x', '1.22.x', '1.24.x' ]
16
17 steps:
18 - uses: actions/checkout@v4
19
20 - name: Set up Go ${{ matrix.go-version }}
21 uses: actions/setup-go@v4
22 with:
23 go-version: ${{ matrix.go-version }}
24
25 - name: Build
26 run: go build -v ./...
27
28 - name: Test
29 run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
30
31 - name: Upload coverage to Codecov
32 uses: codecov/codecov-action@v3
33 with:
34 file: ./coverage.txt