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 6db46ce
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,22 @@ 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
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Check format
run: cargo fmt --all -- --check
- name: Run clippy
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: |
set +e
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 6db46ce

Please sign in to comment.