Skip to content

Commit 88289a7

Browse files
committed
Try a matrix of runners.
1 parent 9e465ef commit 88289a7

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,23 @@ env:
1010
# https://github.com/jonpugh/github-runner/settings/secrets/actions/JONPUGH_GITHUB_TOKEN_ADMIN
1111
GITHUB_TOKEN: "${{ secrets.JONPUGH_GITHUB_TOKEN_ADMIN }}"
1212
RUNNER_CONFIG_NAME: "jonpugh@github-runner.${{ github.run_id }}"
13-
13+
1414
jobs:
1515
create:
1616
name: Create Runner
1717
# Testing github hosted.
1818
# runs-on: jonpugh/github-runner
1919
runs-on: ubuntu-latest
20+
env:
21+
# Set unique name for each item in the matrix.
22+
RUNNER_CONFIG_NAME: "jonpugh@github-runner.${{ github.run_id }}.${{ matrix.runner }}"
23+
24+
# Add consistent label for all runners.
25+
RUNNER_CONFIG_LABELS: "jonpugh@github-runner.${{ github.run_id }}"
26+
27+
strategy:
28+
matrix:
29+
runner: [1,2,3,4,5]
2030
steps:
2131
- uses: actions/checkout@v4
2232

@@ -41,6 +51,9 @@ jobs:
4151
run:
4252
name: Run Tasks
4353
runs-on: "jonpugh@github-runner.${{ github.run_id }}"
54+
strategy:
55+
matrix:
56+
runner: [1,2,3,4,5]
4457
steps:
4558
- uses: actions/checkout@v4
4659

0 commit comments

Comments
 (0)