Skip to content

Commit

Permalink
workflows/doctor: use brew determine-test-runners
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Nov 17, 2023
1 parent f6a2616 commit 2ffade2
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / workflow_syntax

context "runner" is not allowed here. available contexts are "env", "github", "inputs", "matrix", "needs", "strategy", "vars". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details
steps:
- name: Set up Homebrew
id: set-up-homebrew
Expand Down

0 comments on commit 2ffade2

Please sign in to comment.