-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 815 Bytes
/
test.yml
File metadata and controls
35 lines (31 loc) · 815 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
name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Check out source code
uses: actions/checkout@v2
- name: Restore Cache
uses: actions/cache@preview
id: cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
env:
GOPROXY: "https://proxy.golang.org"
CODECOV_TOKEN: ${{ secrets.SuperSecret }}
run: |
go test -race -coverprofile=coverage.out -covermode=atomic ./...