-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 910 Bytes
/
test-runner.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
31
32
33
34
35
36
37
38
name: Test Runner
on:
# trigger on any push to any branch
push:
branches:
- '*'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: "Cache Go Modules"
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: "Setup Go"
uses: actions/setup-go@v5
with:
go-version: '>=1.19'
- name: "Run Tests"
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
- name: "Codecov: Upload Coverage"
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true