From 20cf570b89f0d0c7a288cdbd4d79f59abbdac7f4 Mon Sep 17 00:00:00 2001 From: Victor Payno Date: Sun, 10 Sep 2023 11:54:13 -0700 Subject: [PATCH] ci(go): allow extra linters to fail --- .github/workflows/go.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fa934d2b..736eb270 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -210,30 +210,37 @@ jobs: ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-test-cover - name: Testing with errcheck (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-errcheck + continue-on-error: true run: |- - ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-errcheck -ignoretests + ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-errcheck - name: Testing with gocritic (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-gocritic + continue-on-error: true run: |- - ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-gocritic check -enableAll -exitCode 0 + ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-gocritic - name: Testing with gocyclo (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-gocyclo + continue-on-error: true run: |- ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-gocyclo - name: Testing with golangci-lint (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-golangci-lint + continue-on-error: true run: |- ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-golangci-lint - name: Testing with go-consistent (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-go-consistent + continue-on-error: true run: |- ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-go-consistent - name: Testing with go-ineffassign (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-ineffassign + continue-on-error: true run: |- ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-ineffassign - name: Testing with staticcheck (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-staticcheck + continue-on-error: true run: |- ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-staticcheck - name: Testing with misspell (${{ matrix.go-version }}) [${{ matrix.exercise }}] @@ -242,5 +249,6 @@ jobs: ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-misspell - name: Testing with gosec (${{ matrix.go-version }}) [${{ matrix.exercise }}] id: go-test-security + continue-on-error: true run: |- ./.github/citools/common/run_wrapper_script "./${{ matrix.exercise }}" ../../.github/citools/go/go-lint-gosec