Debian Codegraph @

.github/workflows/ci.yaml

raw
1 name: ci
2 on:
3 push:
4 branches:
5 - main
6 pull_request:
7 branches:
8 - main
9 workflow_dispatch:
10 branches:
11 - "*"
12 jobs:
13 test:
14 name: Test
15 runs-on: ubuntu-latest
16 steps:
17 - name: Check out code into the Go module directory
18 uses: actions/checkout@v2
19
20 - name: Set up Go 1.19
21 uses: actions/setup-go@v2
22 with:
23 go-version: 1.19
24
25 - name: Get dependencies
26 run: |
27 go get -v -t -d ./...
28
29 - name: Test
30 run: go test -race -coverprofile="coverage.txt" -covermode=atomic ./...
31
32 - name: upload coverage
33 uses: codecov/codecov-action@v1
34 with:
35 token: ${{ secrets.CODECOV_TOKEN }}