File tree Expand file tree Collapse file tree 7 files changed +51
-14
lines changed Expand file tree Collapse file tree 7 files changed +51
-14
lines changed Original file line number Diff line number Diff line change
1
+ # This file is copied from config/symfony/.editorconfig in https://github.com/itk-dev/devops_itkdev-docker.
2
+ # Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
3
+
1
4
# EditorConfig is awesome: https://editorconfig.org
2
5
3
6
# top-most EditorConfig file
4
7
root = true
5
8
6
9
[* ]
7
- end_of_line = lf
8
- insert_final_newline = true
9
10
charset = utf-8
10
- indent_style = space
11
+ end_of_line = LF
11
12
indent_size = 4
13
+ indent_style = space
14
+ insert_final_newline = true
15
+ trim_trailing_whitespace = true
16
+
17
+ [* .{js,css,scss} ]
18
+ indent_size = 2
12
19
13
20
[* .{yml,yaml} ]
14
21
indent_size = 2
15
22
16
- # Symfony uses 4 spaces for indent
17
23
[config/** /* .{yml,yaml} ]
18
24
indent_size = 4
Original file line number Diff line number Diff line change 42
42
fail-fast : false
43
43
steps :
44
44
- uses : actions/checkout@v4
45
- - run : |
45
+
46
+ - name : Create docker network
47
+ run : |
46
48
docker network create frontend
49
+
50
+ - run : |
47
51
docker compose run --rm phpfpm composer validate --strict
48
52
49
53
composer-normalized :
52
56
fail-fast : false
53
57
steps :
54
58
- uses : actions/checkout@v4
55
- - run : |
59
+
60
+ - name : Create docker network
61
+ run : |
56
62
docker network create frontend
63
+
64
+ - run : |
57
65
docker compose run --rm phpfpm composer install
58
66
docker compose run --rm phpfpm composer normalize --dry-run
59
67
63
71
fail-fast : false
64
72
steps :
65
73
- uses : actions/checkout@v4
66
- - run : |
74
+
75
+ - name : Create docker network
76
+ run : |
67
77
docker network create frontend
78
+
79
+ - run : |
68
80
docker compose run --rm phpfpm composer audit
Original file line number Diff line number Diff line change 36
36
- name : Checkout
37
37
uses : actions/checkout@v4
38
38
39
- - run : |
39
+ - name : Create docker network
40
+ run : |
40
41
docker network create frontend
41
42
42
43
- run : |
Original file line number Diff line number Diff line change 49
49
runs-on : ubuntu-latest
50
50
steps :
51
51
- uses : actions/checkout@v4
52
- - run : |
52
+
53
+ - name : Create docker network
54
+ run : |
53
55
docker network create frontend
56
+
57
+ - run : |
54
58
docker compose run --rm phpfpm composer install
55
59
# https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/usage.rst#the-check-command
56
60
docker compose run --rm phpfpm vendor/bin/php-cs-fixer fix --dry-run --diff
Original file line number Diff line number Diff line change 42
42
- name : Checkout
43
43
uses : actions/checkout@v4
44
44
45
- - run : |
45
+ - name : Create docker network
46
+ run : |
46
47
docker network create frontend
48
+
49
+ - run : |
47
50
docker compose run --rm phpfpm composer install
48
51
docker compose run --rm phpfpm vendor/bin/twig-cs-fixer lint
Original file line number Diff line number Diff line change 1
1
# Do not edit this file! Make a pull request on changing
2
- # github/workflows/symfony/ yaml.yaml in
2
+ # github/workflows/yaml.yaml in
3
3
# https://github.com/itk-dev/devops_itkdev-docker if need be.
4
4
5
- # ## ### Symfony YAML
5
+ # ## ### YAML
6
6
# ##
7
- # ## Validates Symfony YAML files.
7
+ # ## Validates YAML files.
8
8
# ##
9
9
# ## #### Assumptions
10
10
# ##
11
11
# ## 1. A docker compose service named `prettier` for running
12
12
# ## [Prettier](https://prettier.io/) exists.
13
+ # ##
14
+ # ## #### Symfony YAML
15
+ # ##
16
+ # ## Symfony's YAML config files use 4 spaces for indentation and single quotes.
17
+ # ## Therefore we use a [Prettier configuration
18
+ # ## file](https://prettier.io/docs/configuration), `.prettierrc.yaml`, to make
19
+ # ## Prettier format YAML files in the `config/` folder like Symfony expects.
13
20
14
21
name : YAML
15
22
26
33
steps :
27
34
- uses : actions/checkout@v4
28
35
29
- - run : |
36
+ - name : Create docker network
37
+ run : |
30
38
docker network create frontend
31
39
32
40
- run : |
Original file line number Diff line number Diff line change
1
+ # This file is copied from config/symfony/yaml/.prettierrc.yaml in https://github.com/itk-dev/devops_itkdev-docker.
2
+ # Feel free to edit the file, but consider making a pull request if you find a general issue with the file.
3
+
1
4
# https://prettier.io/docs/configuration
2
5
overrides :
3
6
# Symfony config
You can’t perform that action at this time.
0 commit comments