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 355e782 commit 3cefb3bCopy full SHA for 3cefb3b
.github/workflows/ci.yml
@@ -6,9 +6,37 @@ on:
6
- main
7
pull_request:
8
9
+permissions:
10
+ contents: read
11
+
12
+env:
13
+ GOLANGCI_LINT_VERSION: v1.61.0
14
15
jobs:
- build-lint-test:
- name: CI
16
+ lint:
17
+ name: Lint Go
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - name: Checkout
21
+ uses: actions/checkout@v4
22
23
+ - name: Setup go
24
+ uses: actions/setup-go@v5
25
+ with:
26
+ go-version-file: ./go.mod
27
28
+ - name: Run golangci-lint
29
+ uses: golangci/golangci-lint-action@v6
30
31
+ version: ${{env.GOLANGCI_LINT_VERSION}}
32
+ args: |
33
+ "./..." --timeout=7m
34
+ skip-cache: true
35
+ install-mode: binary
36
37
+ build-test:
38
+ name: Build and Test
39
+ needs: lint
40
runs-on: ubuntu-latest
41
steps:
42
- name: Checkout
.github/workflows/go-lint.yml
0 commit comments