mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
ci: allow custom actions runner to be defined (#3989)
This commit is contained in:
10
.github/workflows/REUSABLE_backend.yml
vendored
10
.github/workflows/REUSABLE_backend.yml
vendored
@@ -45,6 +45,12 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: error_reporting=E_ALL
|
default: error_reporting=E_ALL
|
||||||
|
|
||||||
|
runner_type:
|
||||||
|
description: The type of runner to use for the jobs. This should be one of the types supported by the `runs-on` keyword.
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: 'ubuntu-latest'
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
composer_auth:
|
composer_auth:
|
||||||
description: The Composer auth tokens to use for private packages.
|
description: The Composer auth tokens to use for private packages.
|
||||||
@@ -57,7 +63,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ inputs.runner_type }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -166,7 +172,7 @@ jobs:
|
|||||||
COMPOSER_PROCESS_TIMEOUT: 600
|
COMPOSER_PROCESS_TIMEOUT: 600
|
||||||
|
|
||||||
phpstan:
|
phpstan:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ inputs.runner_type }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
8
.github/workflows/REUSABLE_frontend.yml
vendored
8
.github/workflows/REUSABLE_frontend.yml
vendored
@@ -86,6 +86,12 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
runner_type:
|
||||||
|
description: The type of runner to use for the jobs. This should be one of the types supported by the `runs-on` keyword.
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: 'ubuntu-latest'
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
bundlewatch_github_token:
|
bundlewatch_github_token:
|
||||||
description: The GitHub token to use for Bundlewatch.
|
description: The GitHub token to use for Bundlewatch.
|
||||||
@@ -103,7 +109,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Checks & Build
|
name: Checks & Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ inputs.runner_type }}
|
||||||
|
|
||||||
if: >-
|
if: >-
|
||||||
((github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || github.event_name != 'pull_request')
|
((github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || github.event_name != 'pull_request')
|
||||||
|
Reference in New Issue
Block a user