parent
a0f6e63032
commit
af2bab6221
2 changed files with 29 additions and 17 deletions
|
@ -3,22 +3,34 @@ jobs:
|
|||
ls:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: setup extension cache
|
||||
id: extcache
|
||||
uses: https://github.com/shivammathur/cache-extensions@v1
|
||||
with:
|
||||
extensions: intl,zip
|
||||
key: cache-v1
|
||||
- name: cache extensions
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ steps.extcache.outputs.dir }}
|
||||
key: ${{ steps.extcache.outputs.key }}
|
||||
restore-keys: ${{ steps.extcache.outputs.key }}
|
||||
- name: setup php
|
||||
- name: Checkout code
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
|
||||
- name: Setup PHP 8.4
|
||||
uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.4'
|
||||
tools: 'composer'
|
||||
extensions: intl,zip
|
||||
extensions: mbstring, ctype, iconv, pdo, dom, fileinfo, intl, zip
|
||||
tools: composer:v2
|
||||
|
||||
- name: Get Composer cache directory
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache Composer dependencies
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.composer-cache.outputs.dir }}
|
||||
key: php-8.4-composer-${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: |
|
||||
php-8.4-composer-
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-progress --no-scripts
|
||||
|
||||
- name: Run Symfony auto-scripts
|
||||
run: composer run-script post-install-cmd
|
||||
|
||||
- name: Run PestPHP tests (parallel)
|
||||
run: composer test
|
|
@ -20,7 +20,7 @@
|
|||
"symfony/asset": "7.2.*",
|
||||
"symfony/console": "7.1.*",
|
||||
"symfony/dotenv": "7.1.*",
|
||||
"symfony/expression-language": "7.2.*",
|
||||
"symfony/expression-language": "7.3.*",
|
||||
"symfony/flex": "^2.4.6",
|
||||
"symfony/form": "7.1.*",
|
||||
"symfony/framework-bundle": "7.1.*",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue