chore: use new vendors Github actions #828
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test AdminBundle | |
on: | |
- push | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
env: | |
extensions: json | |
composer_version: 2 | |
strategy: | |
matrix: | |
php_version: | |
- '8.3' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Restore cached vendors | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
node_modules | |
vendor | |
key: ${{ runner.os }}-vendor | |
- name: Setup PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
extensions: ${{ env.extensions }} | |
ini-values: memory_limit=-1 | |
coverage: pcov | |
tools: composer, php-cs-fixer, cs2pr | |
- name: Install dependencies | |
run: composer install --no-interaction | |
- name: Install yarn dependencies | |
run: yarn install --force | |
- name: Build yarn dependencies | |
run: yarn run encore production | |
- name: Run docker compose | |
run: docker compose up -d db && sleep 10 && docker compose logs db | |
- name: Run phpunit | |
run: bin/phpunit -c phpunit.xml.dist | |
- name: Run php-cs-fixer | |
run: PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run --using-cache=no --verbose --diff --allow-risky=yes --config .php-cs-fixer.dist.php | |
- name: Run phpstan | |
run: bin/phpstan analyse --level=5 src | |
- name: Run var_dump checker | |
run: bin/var-dump-check --symfony src tests | |
- name: Stop docker compose | |
run: docker compose down | |
- name: Cache vendors | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
node_modules | |
vendor | |
key: ${{ runner.os }}-vendor |