-
Notifications
You must be signed in to change notification settings - Fork 57
68 lines (50 loc) · 1.39 KB
/
go.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Go
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
strategy:
matrix:
go: ['stable', 'oldstable']
os: ['ubuntu-latest']
runs-on: ${{ matrix.os }}
name: Go ${{ matrix.go }} in ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
name: Install Go
with:
go-version: ${{ matrix.go }}
check-latest: true
cache: true
- name: Install dependencies
run: go get .
- name: "Run go mod"
run: ./make qa/mod
- name: "Run go fmt"
run: ./make qa/fmt
- name: "Run go vet"
run: ./make qa/vet
- name: "Run go lint"
run: ./make qa/lint
- name: "Run go staticcheck"
run: ./make qa/staticcheck
- name: "Run go vulncheck"
run: ./make qa/vulncheck
- name: "Run go gosec"
run: ./make qa/gosec
- name: "Run tests"
run: ./make qa/test/cover
- name: "Rename coverage report to art.coverage.${{ matrix.go }}.${{ matrix.os }}.html..."
run: mv ./art.coverage.html art.coverage.${{ matrix.go }}.${{ matrix.os }}.html
- uses: actions/upload-artifact@v4
with:
name: art.coverage.${{ matrix.go }}.${{ matrix.os }}
path: art.coverage.${{ matrix.go }}.${{ matrix.os }}.html
- name: "Run go benchmarks"
run: ./make qa/benchmarks