Skip to content

Commit

Permalink
Integrate alls-green in rust-check job to improve status checks
Browse files Browse the repository at this point in the history
This patch integrates alls-green, that checks whether all dependency jobs
have passed successfully. This change also simplifies the CI setup by
requiring only the rust-check job for status checks.

Resolves #2848
  • Loading branch information
OlenaYefymenko committed Mar 9, 2024
1 parent 653c831 commit 76e1803
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,28 @@ jobs:
features: ${{ toJson(matrix.features) }}
action: ${{ matrix.action }}

# See: https://github.com/re-actors/alls-green
check-rust:
if: always()
needs:
- changes
- check-gitbutler-app
- check-gitbutler-changeset
- check-gitbutler-core
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.rust == 'true' }}
steps:
- run: ':'
shell: bash
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
allowed-skips: >-
${{
needs.changes.outputs.rust != 'true'
&& '
check-gitbutler-app,
check-gitbutler-changeset,
check-gitbutler-core,
'
|| ''
}}
jobs: ${{ toJSON(needs) }}

0 comments on commit 76e1803

Please sign in to comment.