Skip to content

Commit

Permalink
Default to PHP 8.2 (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Luis Rosales <[email protected]>
  • Loading branch information
tyrann0us and luislard authored Oct 2, 2024
1 parent ea75eb2 commit c55a8ba
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ on:
required: false
PHP_VERSION:
description: PHP version with which the PHP tools are to be executed.
default: '8.0'
default: '8.2'
required: false
type: string
PHP_TOOLS:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-assets-compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
type: string
PHP_VERSION:
description: PHP version with which the assets compilation is to be executed.
default: "8.0"
default: '8.2'
required: false
type: string
COMPOSER_ARGS:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-plugin-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ on:
type: string
PHP_VERSION:
description: PHP version to use when gathering production dependencies.
default: "8.0"
default: '8.2'
required: false
type: string
PHP_VERSION_BUILD:
description: PHP version to use when executing build tools.
default: "8.2"
default: '8.2'
required: false
type: string
ARCHIVE_NAME:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
PHP_VERSION:
description: PHP version with which the scripts are executed.
default: "8.0"
default: '8.2'
required: false
type: string
COMPOSER_ARGS:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
PHP_VERSION:
description: PHP version with which the scripts are executed.
default: '8.0'
default: '8.2'
required: false
type: string
COMPOSER_ARGS:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
PHP_VERSION:
description: PHP version with which the scripts are executed.
default: "8.0"
default: '8.2'
required: false
type: string
COMPOSER_ARGS:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-unit-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
PHP_VERSION:
description: PHP version with which the scripts are executed.
default: '8.0'
default: '8.2'
required: false
type: string
COMPOSER_ARGS:
Expand Down
4 changes: 2 additions & 2 deletions docs/archive-creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
| `NODE_VERSION` | `18` | Node version with which the assets will be compiled |
| `NPM_REGISTRY_DOMAIN` | `'https://npm.pkg.github.com/'` | Domain of the private npm registry |
| `COMPOSER_ARGS` | `'--no-dev --no-scripts --prefer-dist --optimize-autoloader'` | Set of arguments passed to Composer when gathering production dependencies |
| `PHP_VERSION` | `'8.0'` | PHP version to use when gathering production dependencies |
| `PHP_VERSION_BUILD` | `'8.0'` | PHP version to use when executing build tools |
| `PHP_VERSION` | `'8.2'` | PHP version to use when gathering production dependencies |
| `PHP_VERSION_BUILD` | `'8.2'` | PHP version to use when executing build tools |
| `ARCHIVE_NAME` | `''` | The name of the zip archive (falls back to the repository name) |
| `PLUGIN_MAIN_FILE` | `'index.php'` | The name of the main plugin file |
| `PLUGIN_FOLDER_NAME` | `''` | The name of the plugin folder (falls back to the archive name, if set, or the repository name) |
Expand Down
2 changes: 1 addition & 1 deletion docs/assets-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
| `NODE_OPTIONS` | `''` | Space-separated list of command-line Node options |
| `NODE_VERSION` | `18` | Node version with which the assets will be compiled |
| `NPM_REGISTRY_DOMAIN` | `'https://npm.pkg.github.com/'` | Domain of the private npm registry |
| `PHP_VERSION` | `'8.0'` | PHP version with which the assets compilation is to be executed |
| `PHP_VERSION` | `'8.2'` | PHP version with which the assets compilation is to be executed |
| `COMPOSER_ARGS` | `'--prefer-dist'` | Set of arguments passed to Composer |
| `COMPILE_ASSETS_ARGS` | `'-v --env=root'` | Set of arguments passed to Composer Asset Compiler |

Expand Down
2 changes: 1 addition & 1 deletion docs/build-and-push-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ the workflow.
| `ASSETS_TARGET_FILES` | `''` | Space-separated list of target file paths for compiled assets |
| `BUILT_BRANCH_NAME` | `''` | Sets the target branch for pushing assets on the `branch` event |
| `RELEASE_BRANCH_NAME` | `''` | On tag events, target branch where compiled assets are pushed and the tag is moved to |
| `PHP_VERSION` | `'8.0'` | PHP version with which the PHP tools are to be executed |
| `PHP_VERSION` | `'8.2'` | PHP version with which the PHP tools are to be executed |
| `PHP_TOOLS` | `''` | PHP tools supported by [shivammathur/setup-php](https://github.com/shivammathur/setup-php#wrench-tools-support) to be installed |

## Secrets
Expand Down
12 changes: 6 additions & 6 deletions docs/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
| Name | Default | Description |
|-----------------|----------------------------------------------------------|-------------------------------------------------|
| `PHP_VERSION` | `'8.0'` | PHP version with which the scripts are executed |
| `PHP_VERSION` | `'8.2'` | PHP version with which the scripts are executed |
| `COMPOSER_ARGS` | `'--prefer-dist'` | Set of arguments passed to Composer |
| `PHPCS_ARGS` | `'--report-full --report-checkstyle=./phpcs-report.xml'` | Set of arguments passed to PHP_CodeSniffer |
| `CS2PR_ARGS` | `'--graceful-warnings ./phpcs-report.xml'` | Set of arguments passed to cs2pr |
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:

| Name | Default | Description |
|-----------------|---------------------------------------|-------------------------------------------------|
| `PHP_VERSION` | `"8.0"` | PHP version with which the scripts are executed |
| `PHP_VERSION` | `'8.2'` | PHP version with which the scripts are executed |
| `COMPOSER_ARGS` | `'--prefer-dist'` | Set of arguments passed to Composer |
| `PSALM_ARGS` | `'--output-format=github --no-cache'` | Set of arguments passed to Psalm |

Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:

| Name | Default | Description |
|-----------------|---------------------|-------------------------------------------------|
| `PHP_VERSION` | `"8.0"` | PHP version with which the scripts are executed |
| `PHP_VERSION` | `'8.2'` | PHP version with which the scripts are executed |
| `COMPOSER_ARGS` | `'--prefer-dist'` | Set of arguments passed to Composer |
| `PHPUNIT_ARGS` | `'--coverage-text'` | Set of arguments passed to PHPUnit |

Expand All @@ -160,7 +160,7 @@ jobs:
tests-unit-php:
strategy:
matrix:
php: [ "8.0", "8.1", "8.2" ]
php: [ "8.1", "8.2", "8.3" ]
uses: inpsyde/reusable-workflows/.github/workflows/tests-unit-php.yml@main
with:
PHP_VERSION: ${{ matrix.php }}
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:

| Name | Default | Description |
|-------------------------|-----------------------------------------|----------------------------------------------------------------|
| `PHP_VERSION` | `'8.0'` | PHP version with which the scripts are executed |
| `PHP_VERSION` | `'8.2'` | PHP version with which the scripts are executed |
| `COMPOSER_ARGS` | `'--prefer-dist'` | Set of arguments passed to Composer |
| `LINT_ARGS` | `'-e php --colors --show-deprecated .'` | Set of arguments passed to PHP Parallel Lint |
| `COMPOSER_DEPS_INSTALL` | `false` | Whether or not to install Composer dependencies before linting |
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
lint-php:
strategy:
matrix:
php: [ "8.0", "8.1", "8.2" ]
php: [ "8.1", "8.2", "8.3" ]
uses: inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main
with:
PHP_VERSION: ${{ matrix.php }}
Expand Down

0 comments on commit c55a8ba

Please sign in to comment.