Skip to content

Commit

Permalink
chore: only update rust code coverage job if rust code was updated
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Mar 31, 2022
1 parent e2a561f commit ae7c03f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,26 @@ on:
types: [opened, reopened, synchronize]

jobs:
diff:
runs-on: ubuntu-latest
outputs:
isRust: ${{ steps.diff.outputs.isRust }}
steps:
- uses: actions/checkout@v2
- name: Detect Changes
uses: dorny/[email protected]
id: diff
with:
filters: |
isRust:
- '!(explorer|doc|.github)/**'
- '.github/workflows/bench.yml'
codecov-grcov:
name: Generate code coverage
needs: diff
if: github.event.pull_request.draft == false && needs.diff.outputs.isRust == 'true'
runs-on: ubuntu-latest
strategy:
fail-fast: true
Expand Down

0 comments on commit ae7c03f

Please sign in to comment.