From b1561a0c4771978e53e632e15d63d6537d14bd47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Thu, 8 Oct 2020 17:10:47 +0200 Subject: [PATCH] PR #523: Fix Codacy workflows * Fix typo and set max allowed to 9999 * Add codacy config * Update on-push.yml * Add project token to Push WF * Add project token to PR WF * Add Codacy upload to push WF * Add Codacy upload to PR WF --- .codacy.yaml | 3 +++ .github/workflows/on-push.yml | 5 +++++ .github/workflows/pull-request.yml | 7 ++++++- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .codacy.yaml diff --git a/.codacy.yaml b/.codacy.yaml new file mode 100644 index 000000000..28293b226 --- /dev/null +++ b/.codacy.yaml @@ -0,0 +1,3 @@ +--- +exclude_paths: + - 'docs/**/*' diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index e0ceb6ba6..cb5c48119 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -52,6 +52,11 @@ jobs: uses: actions/checkout@v2 - name: Run codacy-analysis-cli uses: codacy/codacy-analysis-cli-action@1.0.1 + with: + # The current issues needs to be fixed before this can be removed + max-allowed-issues: 9999 + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + upload: true Package: needs: [BuildAndTest] diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 57b2cea10..1637f4579 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -69,7 +69,12 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Run codacy-analysis-cli - uses: codacy/codacy-analysis-cli-action@@1.0.1 + uses: codacy/codacy-analysis-cli-action@1.0.1 + with: + # The current issues needs to be fixed before this can be removed + max-allowed-issues: 9999 + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + upload: true Pack: needs: [Build, Test]