Skip to content

Commit a9a1080

Browse files
committed
use updated version of golangci-lint
1 parent 248df14 commit a9a1080

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
20-
20+
2121
- name: Set up Go
2222
uses: actions/setup-go@v5
2323
with:
2424
go-version: ${{ env.GO_VERSION }}
25-
25+
2626
- name: Cache Go modules
2727
uses: actions/cache@v4
2828
with:
@@ -32,23 +32,23 @@ jobs:
3232
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
3333
restore-keys: |
3434
${{ runner.os }}-go-
35-
35+
3636
- name: Download dependencies
3737
run: go mod download
38-
38+
3939
- name: Install golangci-lint
4040
run: |
41-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.3.1
42-
41+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.2
42+
4343
- name: Run lint
4444
run: make lint
45-
45+
4646
- name: Validate schemas and examples
4747
run: make validate
48-
48+
4949
- name: Build application
5050
run: make build
51-
51+
5252
- name: Check for vulnerabilities
5353
run: |
5454
go install golang.org/x/vuln/cmd/govulncheck@latest
@@ -61,12 +61,12 @@ jobs:
6161
steps:
6262
- name: Checkout code
6363
uses: actions/checkout@v4
64-
64+
6565
- name: Set up Go
6666
uses: actions/setup-go@v5
6767
with:
6868
go-version: ${{ env.GO_VERSION }}
69-
69+
7070
- name: Cache Go modules
7171
uses: actions/cache@v4
7272
with:
@@ -76,13 +76,13 @@ jobs:
7676
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
7777
restore-keys: |
7878
${{ runner.os }}-go-
79-
79+
8080
- name: Download dependencies
8181
run: go mod download
82-
82+
8383
- name: Run all tests
8484
run: make test-all
85-
85+
8686
- name: Upload coverage to Codecov
8787
uses: codecov/codecov-action@v4
8888
with:

0 commit comments

Comments
 (0)