Skip to content

Commit 1f15199

Browse files
authored
Merge pull request #76 from shibumi/fix-ci
Fix golangci and update versions
2 parents 7cb81af + d16b387 commit 1f15199

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.21.x, 1.22.x]
7+
go-version: [1.22.x, 1.23.x]
88
os: [ubuntu-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:
1111
- name: Install Go
12-
uses: actions/setup-go@v2
12+
uses: actions/setup-go@v5
1313
with:
1414
go-version: ${{ matrix.go-version }}
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717
- name: Download test data
18-
run: curl -L https://raw.githubusercontent.com/package-url/purl-spec/master/test-suite-data.json -o testdata/test-suite-data.json
18+
# TODO(@shibumi): Remove pinned version and reset to master, once the failing npm test-cases got fixed.
19+
run: curl -L https://raw.githubusercontent.com/package-url/purl-spec/0dd92f26f8bb11956ffdf5e8acfcee71e8560407/test-suite-data.json -o testdata/test-suite-data.json
1920
- name: Test go fmt
2021
run: test -z $(go fmt ./...)
2122
- name: Golangci-lint
22-
uses: golangci/golangci-lint-action@v2
23+
uses: golangci/golangci-lint-action@v6
2324
with:
2425
only-new-issues: true
2526
- name: Test coverage

.golangci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ linters-settings:
55
linters:
66
disable-all: true
77
enable:
8-
- deadcode
98
- errcheck
109
- gosimple
1110
- govet
1211
- ineffassign
1312
- staticcheck
14-
- structcheck
1513
- typecheck
16-
- unused
17-
- varcheck
14+
- unused

0 commit comments

Comments
 (0)