Debian Codegraph @

.github/workflows/go.yml

raw
1 # This workflow will build a golang project
2 # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3
4 name: Go CI
5
6 on: [push, pull_request]
7
8 jobs:
9 build:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v3
13
14 - name: Set up Go
15 uses: actions/setup-go@v3
16 with:
17 go-version: 1.19
18
19 - name: Build
20 run: go build -v ./...
21
22 - name: Test
23 run: go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
24
25 - name: Upload coverage to Codecov
26 uses: codecov/codecov-action@v3