Refonte - Événements > Inscriptions - Nettoyage #3714
Workflow file for this run
This file contains hidden or 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: CI | |
| on: [ push, pull_request ] | |
| env: | |
| php_version: '8.2' | |
| jobs: | |
| unit: | |
| name: "Unit tests" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP with tools | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ env.php_version }} | |
| - uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: "--no-scripts" | |
| - name: Tests - Unit | |
| run: ./bin/phpunit --testsuite unit | |
| lint: | |
| name: "Linter" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP with tools | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ env.php_version }} | |
| - uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: "--no-scripts" | |
| - name: Tests - CS Fixer | |
| run: ./bin/php-cs-fixer fix --dry-run -vv | |
| phpstan: | |
| name: "PHPStan" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP with tools | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ env.php_version }} | |
| - uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: "--no-scripts" | |
| - name: PHPStan | |
| run: php ./bin/phpstan | |
| functional: | |
| name: "Functional tests" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Docker images. | |
| uses: AndreKurait/docker-cache@0.6.0 | |
| with: | |
| key: | | |
| docker-${{ runner.os }}-${{ hashFiles( | |
| 'compose.yml', | |
| 'docker/dockerfiles/apachephp/Dockerfile', | |
| 'docker/dockerfiles/mysql/Dockerfile', | |
| 'docker/dockerfiles/mysqltest/Dockerfile' | |
| ) }} | |
| - name: Delete symfony cache | |
| run: rm -rf var/cache/test | |
| - name: Tests - Functional | |
| run: make test-functional | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Functional tests - deprecated log - full | |
| path: var/logs/test.deprecations.log | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Functional tests - deprecated log - report | |
| path: var/logs/test.deprecations_grouped.log | |
| integration: | |
| name: "Integration tests" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Docker images. | |
| uses: AndreKurait/docker-cache@0.6.0 | |
| with: | |
| key: | | |
| docker-${{ runner.os }}-${{ hashFiles( | |
| 'compose.yml', | |
| 'docker/dockerfiles/apachephp/Dockerfile', | |
| 'docker/dockerfiles/mysql/Dockerfile', | |
| 'docker/dockerfiles/mysqltest/Dockerfile' | |
| ) }} | |
| - name: Delete symfony cache | |
| run: rm -rf var/cache/test | |
| - name: Tests - Integration | |
| run: make test-integration-ci | |
| rector: | |
| name: "Rector" | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP with tools | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ env.php_version }} | |
| - uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: "--no-scripts" | |
| - name: Rector | |
| run: php ./bin/rector |