Skip to content

Commit

Permalink
ci: Single failure handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed May 13, 2024
1 parent 5d3b9fb commit c53aff2
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,38 +61,18 @@ jobs:
cargo clippy --version
- name: Cargo clippy
run: cargo clippy -- -D warnings
- name: Cargo clippy failure info
if: failure()
run: |
echo 'cargo clippy failed'
echo 'Please fix the issue generated by clippy'
- name: Build with try-runtime feature
run: RUSTFLAGS="-D warnings" cargo build --features try-runtime
- name: try-runtime build failure
if: failure()
run: |
echo 'Building with `try-runtime` feature failed'
- name: Build node runtime
run: RUSTFLAGS="-D warnings" cargo build -p polka-storage-runtime
- name: Node runtime build failure
if: failure()
run: |
echo 'Building the node runtime failed'
- name: Build node with runtime-benchmark feature
run: RUSTFLAGS="-D warnings" cargo build -p polka-storage-node --features runtime-benchmarks
- name: runtime-benchmark build failure
if: failure()
run: |
echo 'Failed to build node with runtime-benchmark feature'
- name: Build in release mode
run: RUSTFLAGS="-D warnings" cargo build --release
- name: Release build failed
if: failure()
run: |
echo 'cargo build --release failed'
- name: Run tests
run: RUSTFLAGS="-D warnings" cargo test --workspace
- name: Cargo test fail
- name: Failure handling
if: failure()
run: |
echo 'cargo test --workspace failed'
echo 'Job clippy_build_and_test failed.'
echo 'Please check the logs for more details'

0 comments on commit c53aff2

Please sign in to comment.