|
9 | 9 | - 'ux.symfony.com/**' |
10 | 10 |
|
11 | 11 | jobs: |
12 | | - tests: |
| 12 | + |
| 13 | + cs-php: |
13 | 14 | runs-on: ubuntu-latest |
14 | 15 | defaults: |
15 | | - run: |
16 | | - shell: bash |
17 | | - working-directory: ux.symfony.com |
18 | | - |
| 16 | + run: |
| 17 | + shell: bash |
| 18 | + working-directory: ux.symfony.com |
19 | 19 | steps: |
20 | | - - uses: actions/checkout@v4 |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + - uses: shivammathur/setup-php@v2 |
| 22 | + with: |
| 23 | + php-version: '8.3' |
| 24 | + tools: php-cs-fixer |
| 25 | + - name: Install dependencies |
| 26 | + uses: ramsey/composer-install@v3 |
| 27 | + with: |
| 28 | + working-directory: ux.symfony.com |
| 29 | + - name: php-cs-fixer |
| 30 | + run: php-cs-fixer check --diff |
21 | 31 |
|
22 | | - - uses: shivammathur/setup-php@v2 |
23 | | - with: |
24 | | - php-version: 8.3 |
25 | | - |
26 | | - - name: Install dependencies |
27 | | - uses: ramsey/composer-install@v3 |
28 | | - with: |
| 32 | + cs-twig: |
| 33 | + runs-on: ubuntu-latest |
| 34 | + defaults: |
| 35 | + run: |
| 36 | + shell: bash |
29 | 37 | working-directory: ux.symfony.com |
| 38 | + steps: |
| 39 | + - uses: actions/checkout@v4 |
| 40 | + - uses: shivammathur/setup-php@v2 |
| 41 | + with: |
| 42 | + php-version: '8.3' |
| 43 | + - name: Install dependencies |
| 44 | + uses: ramsey/composer-install@v3 |
| 45 | + with: |
| 46 | + working-directory: ux.symfony.com |
| 47 | + - name: twig-cs-fixer |
| 48 | + run: vendor/bin/twig-cs-fixer lint templates --report=github |
30 | 49 |
|
31 | | - - name: Importmap dependencies |
32 | | - run: php bin/console importmap:install |
33 | | - |
34 | | - - name: Build Sass assets |
35 | | - run: php bin/console sass:build |
36 | | - |
37 | | - - name: Tests |
38 | | - run: vendor/bin/phpunit |
| 50 | + tests: |
| 51 | + runs-on: ubuntu-latest |
| 52 | + defaults: |
| 53 | + run: |
| 54 | + shell: bash |
| 55 | + working-directory: ux.symfony.com |
| 56 | + steps: |
| 57 | + - uses: actions/checkout@v4 |
| 58 | + - uses: shivammathur/setup-php@v2 |
| 59 | + with: |
| 60 | + php-version: '8.3' |
| 61 | + - name: Install dependencies |
| 62 | + uses: ramsey/composer-install@v3 |
| 63 | + with: |
| 64 | + working-directory: ux.symfony.com |
| 65 | + - name: Importmap dependencies |
| 66 | + run: php bin/console importmap:install |
| 67 | + - name: Build Sass assets |
| 68 | + run: php bin/console sass:build |
| 69 | + - name: Tests |
| 70 | + run: vendor/bin/phpunit |
0 commit comments