Skip to content

Commit

Permalink
Merge pull request #1123 from cuviper/ci-robust
Browse files Browse the repository at this point in the history
Make the CI status more robust
  • Loading branch information
cuviper authored Feb 1, 2024
2 parents 2734f99 + 965b29a commit 5876c80
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,16 @@ jobs:
components: rustfmt
- run: cargo fmt --all --check

done:
ci-success:
name: Complete
runs-on: ubuntu-latest
needs: [check, test, demo, i686, wasm, wasi, fmt]
steps:
- run: exit 0
ci-failed:
name: Complete
runs-on: ubuntu-latest
needs: [check, test, demo, i686, wasm, wasi, fmt]
if: failure()
steps:
- run: exit 1
9 changes: 8 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ jobs:
components: rustfmt
- run: cargo fmt --all --check

done:
ci-success:
name: Complete
runs-on: ubuntu-latest
needs: [check, test, fmt]
steps:
- run: exit 0
ci-failed:
name: Complete
runs-on: ubuntu-latest
needs: [check, test, fmt]
if: failure()
steps:
- run: exit 1

0 comments on commit 5876c80

Please sign in to comment.