diff options
| author | jvoisin | 2026-03-13 01:05:46 +0100 |
|---|---|---|
| committer | jvoisin | 2026-03-13 01:11:20 +0100 |
| commit | 9db427391bb5dc5b2722345cb91edbba65c10623 (patch) | |
| tree | a638ad19f3f6ebbd318f5d7dec156ef5d03d605a /.github/workflows | |
| parent | eec2b5e06bdb01d20f1a1125074a379e0b154d80 (diff) | |
Use pipefail when running test CI
Otherwise a non-zero exit code would not cause the job to fail
Ref https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#exit-codes-and-error-action-preference
Co-Authored-By: Sertonix
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/testsuite.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml index 68b2307..8de273c 100644 --- a/.github/workflows/testsuite.yaml +++ b/.github/workflows/testsuite.yaml | |||
| @@ -34,6 +34,7 @@ jobs: | |||
| 34 | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} 100 | 34 | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.version }} 100 |
| 35 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 | 35 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.version }} 100 |
| 36 | - name: Build and run the testsuite | 36 | - name: Build and run the testsuite |
| 37 | shell: bash | ||
| 37 | run : make --silent -C tests clean gcc run | tee ./results.txt | 38 | run : make --silent -C tests clean gcc run | tee ./results.txt |
| 38 | - name: Check the testsuite's output | 39 | - name: Check the testsuite's output |
| 39 | shell: bash | 40 | shell: bash |
| @@ -68,6 +69,7 @@ jobs: | |||
| 68 | sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.version }} 100 | 69 | sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{ matrix.version }} 100 |
| 69 | sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 | 70 | sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ matrix.version }} 100 |
| 70 | - name: Build and run the testsuite | 71 | - name: Build and run the testsuite |
| 72 | shell: bash | ||
| 71 | run : make --silent -C tests clean clang run | tee ./results.txt | 73 | run : make --silent -C tests clean clang run | tee ./results.txt |
| 72 | - name: Check the testsuite's output | 74 | - name: Check the testsuite's output |
| 73 | shell: bash | 75 | shell: bash |
