Skip to content

Commit

Permalink
fix: do not trigger GH status checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Dec 18, 2024
1 parent 440167f commit 6924d05
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
target: aarch64-apple-darwin
timeout-minutes: 30
runs-on: ${{ matrix.environments.runner }}
continue-on-error: ${{ matrix.environments.optional || false }}
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
Expand All @@ -39,4 +38,12 @@ jobs:
run: cargo clippy --all-targets --all-features -- -D warnings
- run: rustup target add ${{ matrix.environments.target }}
- name: Run tests
run: cargo test --locked --all-features --workspace --target ${{ matrix.environments.target }}
run: |
cargo test --locked --all-features --workspace --target ${{ matrix.environments.target }}
exitcode="$?"
if [[ "${{ matrix.environments.optional }}" == "true" && "$exitcode" != "0" ]] ; then
# Propagate failure as a warning
# but do not fail the job
echo "::warning::Tests failed with exit code $exitcode"
exit 0
fi

0 comments on commit 6924d05

Please sign in to comment.