-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
70 lines (61 loc) · 1.66 KB
/
doctor.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: brew doctor
on:
pull_request:
paths:
- .github/workflows/doctor.yml
- Library/Homebrew/cmd/doctor.rb
- Library/Homebrew/diagnostic.rb
- Library/Homebrew/extend/os/diagnostic.rb
- Library/Homebrew/extend/os/mac/diagnostic.rb
- Library/Homebrew/os/mac/xcode.rb
permissions:
contents: read
env:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
defaults:
run:
shell: bash -xeuo pipefail {0}
jobs:
determine-runners:
runs-on: ubuntu-latest
outputs:
runners: ${{ steps.determine-runners.outputs.runners }}
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: false
cask: false
test-bot: false
- name: Determine runners to use for this job
id: determine-runners
env:
HOMEBREW_MACOS_TIMEOUT: 30
run: brew determine-test-runners --all-supported
tests:
needs: determine-runners
strategy:
matrix:
include: ${{ fromJson(needs.determine-runners.outputs.runners) }}
fail-fast: false
name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
timeout-minutes: ${{ matrix.timeout }}
defaults:
run:
working-directory: /tmp
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: false
cask: false
test-bot: true
- run: brew test-bot --only-cleanup-before
if: matrix.cleanup
- run: brew doctor
- run: brew test-bot --only-cleanup-after
if: always() && matrix.cleanup