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 4bd6fba commit a34327eCopy full SHA for a34327e
.github/workflows/lint.yaml
@@ -5,6 +5,32 @@ on:
5
types: [opened, edited, synchronize, reopened]
6
7
jobs:
8
+ go-mod:
9
+ name: Check go.mod
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: actions/setup-go@v5
14
+ with:
15
+ go-version: stable
16
+ - name: Check go.mod
17
+ run: |
18
+ go mod tidy
19
+ git diff --exit-code go.mod
20
+ git diff --exit-code go.sum
21
+
22
+ gofmt:
23
+ name: Check unformatted Go code
24
25
26
27
28
29
30
+ - name: Run gofmt
31
32
+ find . -type f -name '*.go' -not -path './testdata/*' -exec gofmt -w {} +
33
+ git diff --exit-code
34
35
lint:
36
name: Lint
0 commit comments