Skip to content

Commit

Permalink
Pre-install sniccowp/php-scoper-wordpress-excludes (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrann0us authored Jan 6, 2025
1 parent d3cda33 commit 25f252c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-plugin-archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.PHP_VERSION_BUILD }}
tools: humbug/php-scoper, rector
tools: humbug/php-scoper, sniccowp/php-scoper-wordpress-excludes, rector

- name: Check optional Composer build tools
id: composer-tools
Expand Down
10 changes: 6 additions & 4 deletions docs/archive-creation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ GitHub Actions.
To achieve that, the reusable workflow:

1. Installs dependencies (including dev-dependencies) defined in `composer.json`
2. Executes `inpsyde/composer-assets-compiler` if required & configured by the package
3. Executes `inpsyde/wp-translation-downloader` if required & configured by the package
4. Executes PHP-Scoper if configured by the package
5. Executes Rector if configured by the package
2. Executes [Composer Asset Compiler](https://github.com/inpsyde/composer-asset-compiler) if
configured by the package
3. Executes [WordPress Translation Downloader](https://github.com/inpsyde/wp-translation-downloader)
if configured by the package
4. Executes [PHP-Scoper](https://github.com/humbug/php-scoper) if configured by the package
5. Executes [Rector](https://github.com/rectorphp/rector) if configured by the package
6. Re-installs dependencies without dev-dependencies
7. Sets current commit hash and plugin version in the plugin's main file
8. Runs `wp dist-archive` to create the final archive (with builtin support for a `.distignore`
Expand Down

0 comments on commit 25f252c

Please sign in to comment.