-
Notifications
You must be signed in to change notification settings - Fork 242
30 lines (28 loc) · 861 Bytes
/
unittest.yml
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
29
30
name: Run unittests
on:
push:
pull_request:
types: [synchronize]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '>=1.13.0'
- name: Checkout code
uses: actions/checkout@v3
- name: Run unittests and generate coverage report
run: go test -timeout 2m -coverprofile="cover.out" -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
name: boomer # User defined upload name. Visible in Codecov UI
file: ./cover.out # Path to coverage file to upload
flags: unittests # Flag upload to group coverage metrics
verbose: true