Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
- name: Check phar
run: sudo ./easyengine.phar cli info

- name: Check phar contents
run: |
php -r '$bad = []; foreach ( new RecursiveIteratorIterator( new Phar( "easyengine.phar" ) ) as $f ) { $p = $f->getPathname(); if ( preg_match( "#/vendor/easyengine/[^/]+/(tests|features)/#", $p ) ) { $bad[] = $p; } } if ( $bad ) { fwrite( STDERR, "Package tests or features in the phar:\n" . implode( "\n", $bad ) . "\n" ); exit( 1 ); }'

- name: Upload built Phar file
uses: actions/upload-artifact@v7
with:
Expand Down
2 changes: 2 additions & 0 deletions utils/make-phar.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ function get_composer_versions( $current_version ) {
add_file( $phar, $file );
}

// A fresh finder: the one above still carries its *.php pattern and would add the packages' tests and features too.
$finder = new Finder();
$finder
->files()
->ignoreDotFiles(false)
Expand Down
Loading