Skip to content

Commit 1f7504a

Browse files
committed
github actions: improve install cache
1 parent a93b90b commit 1f7504a

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/php.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,11 @@ jobs:
5656
uses: actions/cache@v2
5757
with:
5858
path: ${{ env.COMPOSER_CACHE_DIR }}
59-
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
60-
restore-keys: |
61-
php${{ matrix.php }}-composer-
59+
key: php${{ matrix.php }}-os${{ matrix.os }}-yaml${{ matrix.yaml }}-composer-${{ hashFiles('**/composer.json') }}
6260

6361

6462
- name: Validate composer.json and composer.lock
65-
run: composer validate
63+
run: composer validate --ansi
6664

6765
- name: Install dependencies
6866
if: steps.composer-cache.outputs.cache-hit != 'true'

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ fix-style:
1717
vendor/bin/php-cs-fixer fix src/ --diff
1818

1919
install:
20-
composer install --prefer-dist --no-interaction --no-progress --no-suggest
20+
composer install --prefer-dist --no-interaction --no-progress --no-suggest --ansi
2121
yarn install
2222

2323
test:
24-
php $(PHPARGS) $(XPHPARGS) vendor/bin/phpunit --verbose $(TESTCASE)
24+
php $(PHPARGS) $(XPHPARGS) vendor/bin/phpunit --verbose --color $(TESTCASE)
2525
php $(PHPARGS) $(XPHPARGS) bin/php-openapi validate tests/spec/data/recursion.json
2626
php $(PHPARGS) $(XPHPARGS) bin/php-openapi validate tests/spec/data/recursion2.yaml
2727

0 commit comments

Comments
 (0)