Add tracing crate #27
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Rust Project | |
on: | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
cache: 'true' | |
toolchain: stable | |
- name: Run tests | |
id: cargo_test | |
run: | | |
cargo test --test skeptic -- --test-threads=1 | |
- name: Test Results | |
if: always() | |
run: | | |
if [ ${{ steps.cargo_test.outcome }} == 'success' ]; then | |
echo "✅ All tests passed!" | |
else | |
echo "❌ Some tests failed. Check the logs above for details." | |
exit 1 | |
fi |