From 23a77a76664a150640e72df0668133c0fc3c37e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 15 Mar 2021 18:08:55 +0200 Subject: [PATCH] Use gnu parallel for validating composer.json On my local laptop the runtime changes 45s to 11s --- .github/workflows/tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b512efbf..352738be6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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