-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (33 loc) · 867 Bytes
/
test.yml
File metadata and controls
39 lines (33 loc) · 867 Bytes
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
39
name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Dependencies
run: go mod download
- name: Lint
run: |
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.49.0
./bin/golangci-lint run
- name: Test
run: go test -race -cover -coverprofile=coverage.txt -covermode=atomic ./...
- name: Coverage
uses: codecov/codecov-action@v1.0.13
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella