4141 - run : |
4242 docker network create frontend
4343
44- - name : Load fixtures
44+ - name : Check YAML coding standards
4545 run : |
4646 task --yes coding-standards:yaml:check
4747
@@ -50,75 +50,39 @@ jobs:
5050
5151 psalm :
5252 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
5854 steps :
5955 - uses : actions/checkout@v4
6056
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
7159
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
7862
79- - name : Install Dependencies
63+ - name : Run code analysis
8064 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
65+ task --yes code-analysis:psalm
8566
8667 apispec :
8768 runs-on : ubuntu-latest
88- name : API Specification validation
89- strategy :
90- fail-fast : false
91- matrix :
92- php : ["8.3"]
69+ name : API specification validation
9370 steps :
9471 - name : Checkout
9572 uses : actions/checkout@v4
9673 with :
9774 fetch-depth : 2
9875
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-
76+ # https://taskfile.dev/installation/#github-actions
77+ - uses : arduino/setup-task@v2
11678
117- - name : Install Dependencies
118- run : composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
79+ - run : |
80+ docker network create frontend
81+ task --yes site:update
11982
120- - name : Export specifications
121- run : bin/console api:openapi:export --yaml --output=public/spec.yaml --no-interaction
83+ - name : Export API specification
84+ run : |
85+ task --yes apispec:export
12286
123- - name : Check for changes in specifications
87+ - name : Check for changes in specification
12488 run : git diff --diff-filter=ACMRT --exit-code public/spec.yaml
0 commit comments