Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-install sniccowp/php-scoper-wordpress-excludes #170

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
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
Loading