Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 29 additions & 9 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ on:
# This needs to be declared explicitly so that the job is actually
# run when moved out of draft.
types: [opened, synchronize, reopened, ready_for_review]
paths-ignore:
- "docs/**"
- ".github/workflows/docs-*.yml"
- "**/*.md"
push:
branches:
- main
paths-ignore:
- "docs/**"
- ".github/workflows/docs-*.yml"
- "**/*.md"

env:
CI: 1
Expand All @@ -48,9 +40,29 @@ env:
QUICKCHECK_MAX_TESTS: 1000

jobs:
path-filter:
runs-on: ubuntu-slim
outputs:
codeChange: ${{ steps.filter.outputs.codeChange }}
workflowChange: ${{ steps.filter.outputs.workflowChange }}
steps:
- uses: dorny/paths-filter@v4
id: filter
with:
predicate-quantifier: every
filters: |
codeChange:
- '**'
- '!docs/**'
- '!**.md'
- '!.github/workflows/*.yml'
workflowChange:
- '.github/workflows/coverage.yml'
codecov:
name: Coverage
if: github.event.pull_request.draft == false
needs:
- path-filter
if: ${{ github.event.pull_request.draft == false && (needs.path-filter.outputs.codeChange == 'true' || needs.path-filter.outputs.workflowChange == 'true') }}
runs-on: warp-ubuntu-2404-arm64-8x
timeout-minutes: 30
steps:
Expand Down Expand Up @@ -109,3 +121,11 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
override_codecov:
name: Coverage
needs:
- path-filter
if: ${{ needs.path-filter.outputs.codeChange == 'false' && needs.path-filter.outputs.workflowChange == 'false' }}
runs-on: ubuntu-slim
steps:
- run: echo "No-op job to trigger the required codecov job."
Loading
Loading