-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (47 loc) · 1.17 KB
/
test.yaml
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
40
41
42
43
44
45
46
47
48
49
name: test
on:
pull_request: null
push:
branches:
- master
jobs:
license-check:
runs-on: ubuntu-latest
name: License header check
steps:
- uses: actions/checkout@v3
- run: ./license_check.sh
fmt-check:
runs-on: ubuntu-latest
name: "`gofmt` check"
steps:
- uses: actions/checkout@v3
- uses: Jerome1337/[email protected]
tests:
runs-on: ubuntu-latest
strategy:
matrix:
goversion: ['1.19', '1.20']
name: Go ${{ matrix.goversion }} tests
env:
SW_APM_DEBUG_LEVEL: 1
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- name: Install dependencies
run: |
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
go install github.com/wadey/gocovmerge@latest
go get -t -v ./...
- name: Go vet
run: go vet ./...
- name: Run tests
run: make test
- uses: dominikh/[email protected]
if: matrix.goversion == '1.20'
with:
install-go: false
cache-key: ${{ matrix.goversion }}