-
-
Notifications
You must be signed in to change notification settings - Fork 43
40 lines (33 loc) · 947 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches: master
pull_request:
permissions:
contents: read
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
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: build
runs-on: ubuntu-latest
if: github.event_name != 'push' && !cancelled()
steps:
- name: Result
env:
RESULT: ${{ needs.build.result }}
run: |
[[ "${RESULT}" == success ]]