41
41
- run : |
42
42
docker network create frontend
43
43
44
- - name : Load fixtures
44
+ - name : Check YAML coding standards
45
45
run : |
46
46
task --yes coding-standards:yaml:check
47
47
@@ -50,75 +50,40 @@ jobs:
50
50
51
51
psalm :
52
52
runs-on : ubuntu-latest
53
- strategy :
54
- fail-fast : false
55
- matrix :
56
- php : ["8.3"]
57
- name : Psalm static analysis (${{ matrix.php}})
53
+ name : Psalm static analysis
58
54
steps :
59
55
- uses : actions/checkout@v4
60
56
61
- - name : Setup PHP, with composer and extensions
62
- uses : shivammathur/setup-php@v2
63
- with :
64
- php-version : ${{ matrix.php}}
65
- extensions : http, ctype, iconv
66
- coverage : none
67
-
68
- - name : Get composer cache directory
69
- id : composer-cache
70
- run : echo "::set-output name=dir::$(composer config cache-files-dir)"
57
+ # https://taskfile.dev/installation/#github-actions
58
+ - uses : arduino/setup-task@v2
71
59
72
- - name : Cache dependencies
73
- uses : actions/cache@v4
74
- with :
75
- path : ${{ steps.composer-cache.outputs.dir }}
76
- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.dependency-version }}-
77
- restore-keys : ${{ runner.os }}-composer-${{ matrix.dependency-version }}-
60
+ - run : |
61
+ docker network create frontend
62
+ task --yes compose -- up --detach --wait
78
63
79
- - name : Install Dependencies
64
+ - name : Run code analysis
80
65
run : |
81
- composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
82
- bin/console cache:clear
83
- - name : Psalm
84
- run : ./vendor/bin/psalm --no-cache
66
+ task --yes code-analysis:psalm
85
67
86
68
apispec :
87
69
runs-on : ubuntu-latest
88
- name : API Specification validation
89
- strategy :
90
- fail-fast : false
91
- matrix :
92
- php : ["8.3"]
70
+ name : API specification validation
93
71
steps :
94
72
- name : Checkout
95
73
uses : actions/checkout@v4
96
74
with :
97
75
fetch-depth : 2
98
76
99
- - name : Setup PHP, with composer and extensions
100
- uses : shivammathur/setup-php@v2
101
- with :
102
- php-version : ${{ matrix.php}}
103
- extensions : http, ctype, iconv
104
- coverage : none
105
-
106
- - name : Get composer cache directory
107
- id : composer-cache
108
- run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
109
-
110
- - name : Cache dependencies
111
- uses : actions/cache@v4
112
- with :
113
- path : ${{ steps.composer-cache.outputs.dir }}
114
- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
115
- restore-keys : ${{ runner.os }}-composer-
77
+ # https://taskfile.dev/installation/#github-actions
78
+ - uses : arduino/setup-task@v2
116
79
117
- - name : Install Dependencies
118
- run : composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
80
+ - run : |
81
+ docker network create frontend
82
+ task --yes compose -- up --detach --wait
119
83
120
- - name : Export specifications
121
- run : bin/console api:openapi:export --yaml --output=public/spec.yaml --no-interaction
84
+ - name : Export API specification
85
+ run : |
86
+ task --yes apispec:export
122
87
123
- - name : Check for changes in specifications
88
+ - name : Check for changes in specification
124
89
run : git diff --diff-filter=ACMRT --exit-code public/spec.yaml
0 commit comments