1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-01-03 10:25:00 +01:00

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

View File

@ -32,8 +32,22 @@ jobs:
- run: npm ci - run: npm ci
- run: npm test - run: npm test
- name: Run tests & publish code coverage - uses: actions/upload-artifact@v2
uses: paambaati/codeclimate-action@v2.7.5 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: env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}