-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.07 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
name: test
on:
pull_request: null
push:
branches:
- main
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/gofmt-action@v1.0.5
tests:
strategy:
matrix:
goversion: ['1.22', '1.23']
os: ['ubuntu-latest', 'windows-latest']
name: Go ${{ matrix.goversion }} (${{ matrix.os}}) tests
runs-on: ${{ matrix.os }}
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