We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12339f1 commit f332c3aCopy full SHA for f332c3a
.github/workflows/go.yml
@@ -9,8 +9,11 @@ on:
9
pull_request:
10
branches: [ "master" ]
11
12
-jobs:
+permissions:
13
+ contents: read
14
+ pull-requests: read
15
16
+jobs:
17
build:
18
runs-on: ubuntu-latest
19
steps:
@@ -24,6 +27,23 @@ jobs:
24
27
- name: Build
25
28
run: go build -v ./...
26
29
30
+ - name: Go Format
31
+ run: gofmt -s -w . && git diff --exit-code
32
+
33
+ - name: Go Tidy
34
+ run: go mod tidy && git diff --exit-code
35
36
+ - name: Go mod verify
37
+ run: go mod verify
38
39
+ - name: Run linter
40
+ uses: golangci/golangci-lint-action@v3
41
+ with:
42
+ version: latest
43
+ skip-cache: true
44
+ skip-pkg-cache: true
45
+ skip-build-cache: true
46
47
- name: Test
48
run: go test -v ./...
49
0 commit comments