Skip to content

Commit

Permalink
Use gnu parallel for validating composer.json
Browse files Browse the repository at this point in the history
On my local laptop the runtime changes 45s to 11s
  • Loading branch information
glensc committed Mar 15, 2021
1 parent 1cfdc03 commit 23a77a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ jobs:
# https://github.com/zf1s/zf1/pull/6#issuecomment-495397170
- name: Validate composer.json for all packages
run: |
for json in composer.json packages/*/composer.json; do COMPOSER=$json composer validate || touch failed; done
test ! -f failed
for json in composer.json packages/*/composer.json; do echo COMPOSER=$json; done | parallel env {} composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
Expand Down

0 comments on commit 23a77a7

Please sign in to comment.