blob: 8f31fd2153ad933e7ce1300abb8b2abbb8040a3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
name: Test
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
test:
strategy:
matrix:
go-version: [1.19, '1.20']
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- run: go test -coverprofile=coverage.txt -covermode=atomic -race ./...
- uses: codecov/codecov-action@v3.1.1
|