From a5989707acd230f0aa776a68e4a6bab9127dde2b Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 8 Nov 2020 19:58:16 +0100 Subject: [PATCH] Move test for golang-ci --- .github/workflows/tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7b29c7112..de19f8f4e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -227,6 +227,11 @@ jobs: gox -parallel 2 -verbose -osarch "$GOX_ARCHS" -output "build-output/{{.Dir}}_{{.OS}}_{{.Arch}}" ./cmd/restic lint: + # only run golangci-lint for pull requests, otherwise ALL hints get + # reported. We need to slowly address all issues until we can enable + # linting the master branch :) + if: github.event_name == 'pull_request' + name: lint runs-on: ubuntu-latest steps: @@ -241,8 +246,3 @@ jobs: # Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues: true args: --verbose --timeout 5m --enable-all --disable wsl - - # only run golangci-lint for pull requests, otherwise ALL hints get - # reported. We need to slowly address all issues until we can enable - # linting the master branch :) - if: github.event_name == 'pull_request'