-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: move tap syntax check to run on push
- Loading branch information
Showing
2 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,37 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: "${{ github.ref }}" | ||
cancel-in-progress: true | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
tests: | ||
syntax: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
|
||
- run: brew test-bot --only-tap-syntax | ||
|
||
build: | ||
needs: syntax | ||
if: github.event_name != 'push' | ||
uses: ./.github/workflows/build.yml | ||
|
||
# This job is used as a required status check, instead of requiring each build matrix element. | ||
# When using ephemeral runners, the name of those runs change every time so they cannot be set as required. | ||
conclusion: | ||
needs: tests | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: always() | ||
if: github.event_name != 'push' && !cancelled() | ||
steps: | ||
- name: Result | ||
run: ${{ needs.tests.result == 'success' }} | ||
run: ${{ needs.build.result == 'success' }} |