Skip to content

Commit

Permalink
Try to make the CI status more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 1, 2024
1 parent 9b4acd7 commit 1f457d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,16 @@ jobs:
components: rustfmt
- run: cargo fmt --all --check

ci-status:
ci-success:
name: Complete
runs-on: ubuntu-latest
needs: [test, no_std, fmt]
if: always()
steps:
- if: ${{ success() }}
run: exit 0
- if: ${{ !success() }}
run: exit 1
- run: exit 0
ci-failed:
name: Complete
runs-on: ubuntu-latest
needs: [test, no_std, fmt]
if: failure()
steps:
- run: exit 1
15 changes: 9 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ jobs:
components: rustfmt
- run: cargo fmt --all --check

ci-status:
ci-success:
name: Complete
runs-on: ubuntu-latest
needs: [test, fmt]
if: always()
steps:
- if: ${{ success() }}
run: exit 0
- if: ${{ !success() }}
run: exit 1
- run: exit 0
ci-failed:
name: Complete
runs-on: ubuntu-latest
needs: [test, fmt]
if: failure()
steps:
- run: exit 1

0 comments on commit 1f457d5

Please sign in to comment.