Skip to content

Commit

Permalink
github/workflows: keep running tests even if the previous step failed
Browse files Browse the repository at this point in the history
This patch adds a condition to the jobs that launch the tests to make
sure all the tests are run even if the previous step failed. Without
this condition, the tests would not run if the previous step failed and
the report generation would fail.

Signed-off-by: Mathieu Dupré <[email protected]>
  • Loading branch information
dupremathieu committed Dec 4, 2024
1 parent 1ebeb90 commit 45d1009
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-debian-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@ jobs:
ci/launch.sh conf;

- name: Launch system tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch.sh system;

- name: Launch VM tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch.sh vm;

- name: Launch latency tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch.sh latency;

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-yocto-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,22 @@ jobs:
ci/launch-yocto.sh conf;

- name: Launch system tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh system;

- name: Deploy VMs
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh deploy_vms;

- name: Launch VMs tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh test_vms;

- name: Launch latency tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh test_latency

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,22 @@ jobs:
ci/launch-yocto.sh conf;

- name: Launch system tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh system;

- name: Deploy VMs
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh deploy_vms;

- name: Launch VMs tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh test_vms;

- name: Launch latency tests
if: ${{ always() && steps.conf.conclusion == 'success' }}
run: cd ${{ env.WORK_DIR }};
ci/launch-yocto.sh test_latency

Expand Down

0 comments on commit 45d1009

Please sign in to comment.