From 14a03befa08145593bee82e65e3754eea6d9c8df Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 1 Sep 2021 20:10:47 +0200 Subject: [PATCH] coverage as single job, do nut run when dependabot (#628) --- .github/workflows/ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c65442..550bdbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,22 @@ jobs: - run: npm ci - run: npm test - - name: Run tests & publish code coverage - uses: paambaati/codeclimate-action@v2.7.5 + - uses: actions/upload-artifact@v2 + with: + name: coverage + path: coverage/ + + coverage: + runs-on: ubuntu-latest + needs: [test] + if: ${{ success() && github.actor != 'dependabot[bot]' }} + steps: + - uses: actions/checkout@v2 + - uses: actions/download-artifact@v2 + with: + name: coverage + + - uses: paambaati/codeclimate-action@v2.7.5 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}