-
Notifications
You must be signed in to change notification settings - Fork 2.9k
54 lines (42 loc) · 1.06 KB
/
test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: tests
on:
push: {branches: [master]}
pull_request: {branches: [master]}
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
go: ["1.21.x", "1.22.x", "1.23.x"]
arch: ["amd64", "386"]
env:
GOARCH: "${{matrix.arch}}"
steps:
- uses: actions/checkout@v2
- uses: WillAbides/[email protected]
with:
go-version: ${{matrix.go}}
- name: build
run: make all
- name: test
run: ./test.sh
staticcheck:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: dominikh/[email protected]
with:
version: "2024.1.1"
install-go: false
code-coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install goveralls
run: go install github.com/mattn/goveralls@latest
- name: send coverage
env:
COVERALLS_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: ./coverage.sh --coveralls