-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue where composer/composer was missing
With a previous version adding composer ^2.0 support the dependency on composer/composer was moved into dev requirement, but this requirement is needed to run the console command itself. Also added a new workflow to validate the integrity of the outcoming .phar file. Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
- Loading branch information
1 parent
eafd0b0
commit 6b6758f
Showing
5 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PHP Composer | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
validate-phar: | ||
runs-on: ubuntu-latest | ||
name: Validate phar package | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
tools: composer | ||
ini-values: phar.readonly=false | ||
|
||
- name: Composer install | ||
run: composer install --no-dev --prefer-dist | ||
|
||
- name: Download humbug/box | ||
run: curl -OL https://github.com/humbug/box/releases/download/3.8.3/box.phar > box.phar | ||
|
||
- name: Compile phar | ||
run: php box.phar compile | ||
|
||
- name: Run phar against code | ||
run: php build/composer-unused.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters