Skip to content

decorator inside symfony #7

decorator inside symfony

decorator inside symfony #7

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: main
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
permissions:
contents: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- uses: actions/checkout@v3
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Clear Cache
run: php bin/console cache:clear
- name: Run PHPStan
run: vendor/bin/phpstan analyse -c phpstan.neon --no-progress
- name: Run Coding Standard
run: vendor/bin/pint --config pint.json
# - name: Create Database
# run: |
# mkdir -p data
# touch data/database.sqlite
# - name: Execute tests (Unit and Feature tests) via PHPUnit
# env:
# DATABASE_URL: sqlite:///%kernel.project_dir%/data/database.sqlite
# run: vendor/bin/phpunit