From 64bf0e6300053f5bd42ce4521f55c3fd707ec1e8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 13 Apr 2023 16:35:54 +0200 Subject: [PATCH] Fix golang-ci linter in CI --- .github/workflows/go.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9aa1ea1d..001dbd93 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,23 +15,24 @@ jobs: name: Linter runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory + - name: Check out code uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - name: Setup Go + uses: actions/setup-go@v4 with: go-version: '^1.19' + - name: Get dependencies + run: go mod download + - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.49.0 + version: v1.52.2 only-new-issues: true args: -c ./.golangci.yml --timeout 15m - - name: Get dependencies - run: go mod download - - name: Run go vet run: go vet ./... @@ -43,7 +44,7 @@ jobs: uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: '^1.19' @@ -52,6 +53,3 @@ jobs: - name: Run tests run: ./test --test-only - - - name: Build Portmaster Core - run: ./cmds/portmaster-core/pack