Skip to content

Commit

Permalink
ci: Add failure handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan46 committed May 10, 2024
1 parent 535fc9e commit 3efdaad
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,28 @@ jobs:
run: cargo --version
- 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'
test:
runs-on: ubuntu-latest
Expand All @@ -81,3 +97,7 @@ jobs:
run: cargo --version
- name: Run tests
run: RUSTFLAGS="-D warnings" cargo test --workspace
- name: Cargo test fail
if: failure()
run: |
echo '`cargo test --workspace` failed'

0 comments on commit 3efdaad

Please sign in to comment.