1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

CI tweaks for dependabot

* coverage as single job, do not run when dependabot PR
This commit is contained in:
Matthias Kretschmann 2021-09-01 20:09:41 +02:00
parent e2552d37c0
commit 5776238b6a
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -26,6 +26,20 @@ jobs:
- run: npm ci - run: npm ci
- run: npm test - run: npm test
- 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 - 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 }}