-
Notifications
You must be signed in to change notification settings - Fork 15
59 lines (44 loc) · 1.23 KB
/
static-analysis.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
name: Static Analysis
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
strategy:
matrix:
go-version: ["1.22.0"]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Print staticcheck version
run: staticcheck -version
- name: Run staticcheck
run: staticcheck ./...
- name: Install enumcheck
run: go install loov.dev/enumcheck@latest
- name: Run enumcheck
run: enumcheck ./...
- name: Run go vet
run: go vet ./...
- name: Run CI script
run: ./scripts/cibuild.sh
- name: Build CoreRAD
run: go build ./cmd/corerad/
- name: Generate default TOML configuration
run: ./corerad -init
- name: Install tomlv
run: go install github.com/BurntSushi/toml/cmd/tomlv@latest
- name: Verify default TOML configuration
run: tomlv ./corerad.toml