Debian Codegraph @

.github/workflows/coverage.yml

raw symbols SCIP
1 name: coverage
2 on: [push, pull_request]
3
4 jobs:
5 coverage:
6 strategy:
7 matrix:
8 go-version: [^1]
9 os: [ubuntu-latest, windows-latest, macos-latest]
10 runs-on: ${{ matrix.os }}
11 env:
12 GO111MODULE: "on"
13 steps:
14 - name: Install Go
15 uses: actions/setup-go@v6
16 with:
17 go-version: ${{ matrix.go-version }}
18
19 - name: Checkout code
20 uses: actions/checkout@v5
21
22 - name: Coverage
23 run: |
24 go test -race -covermode=atomic -coverprofile='coverage.txt' ./...
25
26 - uses: codecov/codecov-action@v5
27 with:
28 file: ./coverage.txt
29 token: ${{ secrets.CODECOV_TOKEN }}