github: skip coverage for doc branches

This commit is contained in:
Valentin Tolmer 2022-04-25 17:38:13 +02:00 committed by nitnelave
parent cb84f7f387
commit 5420dcf2b8

View File

@ -20,10 +20,12 @@ jobs:
- id: skip_check - id: skip_check
uses: fkirc/skip-duplicate-actions@master uses: fkirc/skip-duplicate-actions@master
with: with:
concurrent_skipping: 'never' concurrent_skipping: 'outdated_runs'
skip_after_successful_duplicate: 'true' skip_after_successful_duplicate: 'true'
paths_ignore: '["**/*.md", "**/docs/**", "example_configs/**", "*.sh"]' paths_ignore: '["**/*.md", "**/docs/**", "example_configs/**", "*.sh"]'
do_not_skip: '["workflow_dispatch", "schedule"]' do_not_skip: '["workflow_dispatch", "schedule"]'
cancel_others: true
test: test:
name: cargo test name: cargo test
needs: pre_job needs: pre_job
@ -97,6 +99,7 @@ jobs:
coverage: coverage:
name: Code coverage name: Code coverage
needs: pre_job needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout sources - name: Checkout sources