coverage as single job, do nut run when dependabot (#628)

This commit is contained in:
Matthias Kretschmann 2021-09-01 20:10:47 +02:00 committed by GitHub
parent 50f8aa253d
commit 14a03befa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -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 }}