Skip to content

Commit 8ae6ec8

Browse files
committed
Added validation workflow
1 parent beb4441 commit 8ae6ec8

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/validate.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Code QA and validation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
code-qa:
13+
name: Code QA
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up Go + testing tools
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: "1.23"
22+
23+
- name: Staticcheck
24+
run: |
25+
go install honnef.co/go/tools/cmd/[email protected]
26+
staticcheck ./...
27+
28+
- name: Gofumpt
29+
run: |
30+
go install mvdan.cc/[email protected]
31+
output=$(gofumpt -l .)
32+
if [ ! -z "$output" ]; then echo "$output" && exit 1; fi
33+
shell: bash
34+
35+
- name: Vulnerabilities
36+
run: |
37+
go install golang.org/x/vuln/cmd/govulncheck@latest
38+
govulncheck ./...
39+
40+
- name: Vet
41+
run: |
42+
go vet ./...

0 commit comments

Comments
 (0)