From 3247ffc8ea92178c28b00a2e599563a2a4ce8cd5 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Thu, 3 Aug 2023 09:58:42 +0200 Subject: [PATCH] github: only run the coverage after the tests --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7f60e71..bcd7aca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -81,7 +81,9 @@ jobs: coverage: name: Code coverage - needs: pre_job + needs: + - pre_job + - test if: ${{ needs.pre_job.outputs.should_skip != 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }} runs-on: ubuntu-latest steps: