Skip to content

Commit 8415d22

Browse files
ci: allow custom actions runner to be defined (#3989)
1 parent a52959c commit 8415d22

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/REUSABLE_backend.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ on:
4545
required: false
4646
default: error_reporting=E_ALL
4747

48+
runner_type:
49+
description: The type of runner to use for the jobs. This should be one of the types supported by the `runs-on` keyword.
50+
type: string
51+
required: false
52+
default: 'ubuntu-latest'
53+
4854
secrets:
4955
composer_auth:
5056
description: The Composer auth tokens to use for private packages.
@@ -57,7 +63,7 @@ env:
5763

5864
jobs:
5965
test:
60-
runs-on: ubuntu-latest
66+
runs-on: ${{ inputs.runner_type }}
6167

6268
strategy:
6369
matrix:
@@ -166,7 +172,7 @@ jobs:
166172
COMPOSER_PROCESS_TIMEOUT: 600
167173

168174
phpstan:
169-
runs-on: ubuntu-latest
175+
runs-on: ${{ inputs.runner_type }}
170176

171177
strategy:
172178
matrix:

.github/workflows/REUSABLE_frontend.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ on:
8686
type: string
8787
required: false
8888

89+
runner_type:
90+
description: The type of runner to use for the jobs. This should be one of the types supported by the `runs-on` keyword.
91+
type: string
92+
required: false
93+
default: 'ubuntu-latest'
94+
8995
secrets:
9096
bundlewatch_github_token:
9197
description: The GitHub token to use for Bundlewatch.
@@ -103,7 +109,7 @@ env:
103109
jobs:
104110
build:
105111
name: Checks & Build
106-
runs-on: ubuntu-latest
112+
runs-on: ${{ inputs.runner_type }}
107113

108114
if: >-
109115
((github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || github.event_name != 'pull_request')

0 commit comments

Comments
 (0)