Update php.yml
This commit is contained in:
parent
43c333654d
commit
122d3e9f05
|
@ -20,23 +20,11 @@ jobs:
|
||||||
env:
|
env:
|
||||||
PHP_VERSION: ${{ matrix.php }}
|
PHP_VERSION: ${{ matrix.php }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Validate composer.json and composer.lock
|
- name: Validate composer.json and composer.lock
|
||||||
run: composer validate
|
run: composer validate
|
||||||
|
|
||||||
- name: Cache Composer packages
|
|
||||||
id: composer-cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: vendor
|
|
||||||
php-version: '5.6'
|
|
||||||
key: ${{ matrix.os }}-php-${{ hashFiles('**/composer.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ matrix.os }}-php-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.composer-cache.outputs.cache-hit != 'true'
|
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
|
|
||||||
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
|
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
|
||||||
|
|
Loading…
Reference in New Issue