Skip to content

Commit

Permalink
chore: use cgrindel/gha_join_jobs to consolidate all CI job statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrindel committed Dec 11, 2023
1 parent 345f1ed commit 83b8077
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ env:
# Bump this number to invalidate the GH actions cache
cache-version: 0

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
test-nixpkgs:
name: Build & Test - Nixpkgs
Expand Down Expand Up @@ -130,3 +134,13 @@ jobs:
- name: Test for buildifier suggestions
run: nix-shell --pure --run 'bazel run //:buildifier-diff'
if: ${{ !matrix.enable-bzlmod }}

all_ci_tests:
runs-on: ubuntu-latest
needs:
- test-nixpkgs
if: ${{ always() }}
steps:
- uses: cgrindel/gha_join_jobs@794a2d117251f22607f1aab937d3fd3eaaf9a2f5 # v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 83b8077

Please sign in to comment.