Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/deptrac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
- 'deptrac.yaml'
- '.github/workflows/deptrac.yml'
workflow_call:
inputs:
php-version:
required: false
type: string
default: '8.1'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -39,7 +44,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: ${{ inputs['php-version'] }}
tools: composer
extensions: intl, json, mbstring, xml
coverage: none
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- 'phpunit*'
- '.github/workflows/infection.yml'
workflow_call:
inputs:
php-version:
required: false
type: string
default: '8.2'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -31,7 +36,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: ${{ inputs['php-version'] }}
tools: infection, phpunit
extensions: intl, json, mbstring, gd, xml, sqlite3
coverage: xdebug
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/phpcpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ on:
description: Options to phpcpd
required: false
type: string
php-version:
required: false
type: string
default: '8.1'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -44,7 +48,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: ${{ inputs['php-version'] }}
tools: phpcpd
extensions: dom, mbstring
coverage: none
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/phpcsfixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
- '**.php'
- '.github/workflows/phpcsfixer.yml'
workflow_call:
inputs:
php-versions:
required: false
type: string
default: '["8.1", "8.4"]'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -30,7 +35,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.4']
php-versions: ${{ fromJson(inputs.php-versions) }}

steps:
- name: Checkout
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
- 'phpstan*'
- '.github/workflows/phpstan.yml'
workflow_call:
inputs:
php-versions:
required: false
type: string
default: '["8.1", "8.2", "8.3", "8.4"]'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -34,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2', '8.3', '8.4']
php-versions: ${{ fromJson(inputs.php-versions) }}

steps:
- name: Checkout
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/phpunit-no-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- 'phpunit*'
- '.github/workflows/phpunit-no-db.yml'
workflow_call:
inputs:
php-versions:
required: false
type: string
default: '["8.1", "8.2", "8.3", "8.4"]'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -34,7 +39,7 @@ jobs:
if: (! contains(github.event.head_commit.message, '[ci skip]'))
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3', '8.4']
php-versions: ${{ fromJson(inputs.php-versions) }}
dependencies: ['highest', 'lowest']

steps:
Expand Down Expand Up @@ -80,7 +85,7 @@ jobs:
TERM: xterm-256color
TACHYCARDIA_MONITOR_GA: enabled

- if: matrix.php-versions == '8.1'
- if: ${{ matrix.php-versions == fromJson(inputs.php-versions)[0] }}
name: Run Coveralls
continue-on-error: true
run: |
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ on:
- 'phpunit*'
- '.github/workflows/phpunit.yml'
workflow_call:
inputs:
php-versions:
required: false
type: string
default: '["8.1", "8.2", "8.3", "8.4"]'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -40,25 +45,25 @@ jobs:
if: (! contains(github.event.head_commit.message, '[ci skip]'))
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3', '8.4']
php-versions: ${{ fromJson(inputs.php-versions) }}
db-platforms: ['MySQLi', 'SQLite3']
mysql-versions: ['8.0']
dependencies: ['highest']
include:
# MySQL 5.7
- php-versions: '8.1'
- php-versions: ${{ fromJson(inputs.php-versions)[0] }}
db-platforms: MySQLi
mysql-versions: '5.7'
# Postgre
- php-versions: '8.1'
- php-versions: ${{ fromJson(inputs.php-versions)[0] }}
db-platforms: Postgre
mysql-versions: '8.0'
# SQLSRV
- php-versions: '8.1'
- php-versions: ${{ fromJson(inputs.php-versions)[0] }}
db-platforms: SQLSRV
mysql-versions: '8.0'
# OCI8
- php-versions: '8.1'
- php-versions: ${{ fromJson(inputs.php-versions)[0] }}
db-platforms: OCI8
mysql-versions: '8.0'

Expand Down Expand Up @@ -171,7 +176,7 @@ jobs:
TERM: xterm-256color
TACHYCARDIA_MONITOR_GA: enabled

- if: matrix.php-versions == '8.1'
- if: ${{ matrix.php-versions == fromJson(inputs.php-versions)[0] }}
name: Run Coveralls
continue-on-error: true
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
- 'psalm*'
- '.github/workflows/psalm.yml'
workflow_call:
inputs:
php-version:
required: false
type: string
default: '8.1'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -39,7 +44,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: ${{ inputs['php-version'] }}
tools: phpstan, phpunit
extensions: intl, json, mbstring, xml
coverage: none
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
- 'rector.php'
- '.github/workflows/rector.yml'
workflow_call:
inputs:
php-versions:
required: false
type: string
default: '["8.1", "8.4"]'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -34,7 +39,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.4']
php-versions: ${{ fromJson(inputs.php-versions) }}

steps:
- name: Checkout
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/unused.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
- 'composer.*'
- '.github/workflows/unused.yml'
workflow_call:
inputs:
php-version:
required: false
type: string
default: '8.2'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -37,7 +42,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: ${{ inputs['php-version'] }}
tools: composer, composer-unused
extensions: intl, json, mbstring, xml
coverage: none
Expand Down