-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows/doctor: use brew determine-test-runners
- Loading branch information
Showing
1 changed file
with
24 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,24 +14,37 @@ env: | |
HOMEBREW_DEVELOPER: 1 | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
jobs: | ||
determine-runners: | ||
runs-on: ubuntu-22.04 | ||
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: | ||
- runner: "13-arm64-${{ github.run_id }}" | ||
- runner: "13-${{ github.run_id }}" | ||
- runner: "12-arm64-${{ github.run_id }}" | ||
- runner: "12-${{ github.run_id }}" | ||
- runner: "11-arm64" | ||
cleanup: true | ||
- runner: "11-${{ github.run_id }}" | ||
include: ${{ fromJson(needs.determine-runners.outputs.runners) }} | ||
fail-fast: false | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.runner }} | ||
env: | ||
PATH: "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | ||
timeout-minutes: ${{ matrix.timeout }} | ||
defaults: | ||
run: | ||
working-directory: /tmp | ||
working-directory: ${{ runner.temp }} | ||
Check failure on line 47 in .github/workflows/doctor.yml GitHub Actions / workflow_syntax
|
||
steps: | ||
- name: Set up Homebrew | ||
id: set-up-homebrew | ||
|