-
-
Notifications
You must be signed in to change notification settings - Fork 271
70 lines (65 loc) · 2.07 KB
/
ux.symfony.com.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: ux.symfony.com
on:
push:
paths:
- 'ux.symfony.com/**'
pull_request:
paths:
- 'ux.symfony.com/**'
jobs:
cs-php:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ux.symfony.com
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: php-cs-fixer
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
working-directory: ux.symfony.com
- name: php-cs-fixer
run: php-cs-fixer check --diff
cs-twig:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ux.symfony.com
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
working-directory: ux.symfony.com
- name: twig-cs-fixer
run: vendor/bin/twig-cs-fixer lint templates --report=github
tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ux.symfony.com
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Install dependencies
uses: ramsey/composer-install@v3
with:
working-directory: ux.symfony.com
- name: Importmap dependencies
run: php bin/console importmap:install
- name: Build Sass assets
run: php bin/console sass:build
- name: Tests
run: vendor/bin/phpunit