From f9a05eb6ed4d8a20417129c21732b7e2bbf96d82 Mon Sep 17 00:00:00 2001 From: Christian Rebischke Date: Fri, 29 Nov 2024 11:32:47 +0000 Subject: [PATCH] Fix golangci and update versions --- .github/workflows/test.yaml | 10 +++++----- .golangci.yaml | 5 +---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 97c2b9e..f8001a3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,22 +4,22 @@ jobs: test: strategy: matrix: - go-version: [1.21.x, 1.22.x] + go-version: [1.22.x, 1.23.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Download test data - run: curl -L https://raw.githubusercontent.com/package-url/purl-spec/master/test-suite-data.json -o testdata/test-suite-data.json + run: curl -L https://raw.githubusercontent.com/package-url/purl-spec/master/test-suite-data.json@b33dda1cf4515efa8eabbbe8e9b140950805f845 -o testdata/test-suite-data.json - name: Test go fmt run: test -z $(go fmt ./...) - name: Golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v6 with: only-new-issues: true - name: Test coverage diff --git a/.golangci.yaml b/.golangci.yaml index 73a5741..a34f282 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -5,13 +5,10 @@ linters-settings: linters: disable-all: true enable: - - deadcode - errcheck - gosimple - govet - ineffassign - staticcheck - - structcheck - typecheck - - unused - - varcheck \ No newline at end of file + - unused \ No newline at end of file