@@ -29,105 +29,6 @@ jobs:
2929 - name : npm audit
3030 run : docker compose run --rm node npm audit --prefix /app/web/themes/custom/hoeringsportal
3131
32- changelog :
33- runs-on : ubuntu-latest
34- name : Changelog should be updated
35- strategy :
36- fail-fast : false
37- steps :
38- - name : Checkout
39- uses : actions/checkout@v4
40- with :
41- fetch-depth : 2
42-
43- - name : Git fetch
44- run : git fetch
45-
46- - name : Check that changelog has been updated.
47- run : git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0
48-
49- test-composer-files :
50- name : Validate composer
51- runs-on : ubuntu-latest
52- steps :
53- - uses : actions/checkout@v4
54- - uses : arduino/setup-task@v2
55- # https://github.com/arduino/setup-task/tree/56d0cc033e3cecc5f07a291fdd39f29388d21800?tab=readme-ov-file#repo-token
56- with :
57- repo-token : ${{ secrets.GITHUB_TOKEN }}
58-
59- - run : |
60- docker network create frontend
61- task compose -- up --detach
62- task composer -- install
63-
64- - name : Validate composer files
65- run : |
66- task composer -- validate
67- - name : Check composer file is normalized
68- run : |
69- task composer -- normalize --dry-run
70-
71- coding-standards-assets :
72- name : Assets - Check Coding Standards
73- runs-on : ubuntu-latest
74- steps :
75- - uses : actions/checkout@v4
76- - uses : arduino/setup-task@v2
77- with :
78- repo-token : ${{ secrets.GITHUB_TOKEN }}
79-
80- - run : task coding-standards:assets:check
81- # Check for any changes (task …:check runs task …:apply)
82- - run : git diff --exit-code
83-
84- coding-standards-markdown :
85- name : Markdown - Check Coding Standards
86- runs-on : ubuntu-latest
87- steps :
88- - uses : actions/checkout@v4
89- - uses : arduino/setup-task@v2
90- with :
91- repo-token : ${{ secrets.GITHUB_TOKEN }}
92-
93- - run : task coding-standards:markdown:check
94- # Check for any changes (task …:check runs task …:apply)
95- - run : git diff --exit-code
96-
97- coding-standards-php :
98- name : PHP - Check Coding Standards
99- runs-on : ubuntu-latest
100- steps :
101- - uses : actions/checkout@v4
102- - uses : arduino/setup-task@v2
103- with :
104- repo-token : ${{ secrets.GITHUB_TOKEN }}
105-
106- - run : |
107- docker network create frontend
108- task compose -- up --detach
109- task composer -- install
110- task coding-standards:php:check
111- # Check for any changes (task …:check runs task …:apply)
112- - run : git diff --exit-code
113-
114- coding-standards-twig :
115- name : Twig - Check Coding Standards
116- runs-on : ubuntu-latest
117- steps :
118- - uses : actions/checkout@v4
119- - uses : arduino/setup-task@v2
120- with :
121- repo-token : ${{ secrets.GITHUB_TOKEN }}
122-
123- - run : |
124- docker network create frontend
125- task compose -- up --detach
126- task composer -- install
127- task coding-standards:twig:check
128- # Check for any changes (task …:check runs task …:apply)
129- - run : git diff --exit-code
130-
13132 code-analysis :
13233 name : PHP - Code analysis
13334 runs-on : ubuntu-latest
@@ -161,32 +62,6 @@ jobs:
16162 - name : Check for changes in built css
16263 run : git diff --diff-filter=ACMRT --exit-code web/themes/custom/hoeringsportal/build
16364
164- install-site :
165- name : Check that site can be installed
166- runs-on : ubuntu-latest
167- steps :
168- - uses : actions/checkout@v4
169-
170- - name : Install site
171- run : |
172- docker network create frontend
173- docker compose pull
174- docker compose up --detach
175-
176- # Important: Use --no-interaction to make https://getcomposer.org/doc/06-config.md#discard-changes have effect.
177- docker compose exec phpfpm composer install --no-interaction
178-
179- # Install the site
180- docker compose exec phpfpm vendor/bin/drush site:install minimal --existing-config --yes
181-
182- # Build theme assets
183- docker compose run --rm node npm install --prefix /app/web/themes/custom/hoeringsportal
184- docker compose run --rm node npm run build --prefix /app/web/themes/custom/hoeringsportal
185-
186- - name : Show site URL
187- run : |
188- echo $(docker compose exec phpfpm vendor/bin/drush --uri=http://$(docker compose port nginx 8080) user:login)
189-
19065 load-fixtures :
19166 name : Load fixtures
19267 runs-on : ubuntu-latest
20378 docker compose exec phpfpm composer install --no-interaction
20479
20580 # Install the site
206- docker compose exec phpfpm vendor/bin/drush site:install minimal --existing-config --yes
81+ docker compose exec phpfpm vendor/bin/drush site:install --existing-config --yes
20782
20883 - name : Load fixtures
20984 run : |
@@ -263,7 +138,7 @@ jobs:
263138 docker compose exec phpfpm composer install --no-interaction
264139
265140 # Install the site
266- docker compose exec phpfpm vendor/bin/drush site:install minimal --existing-config --yes
141+ docker compose exec phpfpm vendor/bin/drush site:install --existing-config --yes
267142
268143 # Build theme assets
269144 docker compose run --rm node npm install --prefix /app/web/themes/custom/hoeringsportal
@@ -282,69 +157,6 @@ jobs:
282157 path : playwright-report/
283158 retention-days : 30
284159
285- update-site :
286- name : Check that site can be updated
287- runs-on : ubuntu-latest
288- steps :
289- # Install site from our base ref
290- - uses : actions/checkout@v4
291- with :
292- ref : ${{ github.base_ref }}
293-
294- - name : setup-docker-and-composer
295- run : |
296- docker network create frontend
297- docker compose pull
298- docker compose --profile pretix up --detach
299-
300- # Important: Use --no-interaction to make https://getcomposer.org/doc/06-config.md#discard-changes have effect.
301- docker compose exec phpfpm composer install --no-interaction
302-
303- - name : Install site
304- run : |
305- # Add some local settings.
306- cat > web/sites/default/settings.local.php <<'EOF'
307- <?php
308-
309- $settings['hash_salt'] = '${{ github.head_ref }}';
310- EOF
311-
312- cat web/sites/default/settings.local.php
313-
314- # Install the site from config
315- docker compose exec phpfpm vendor/bin/drush site:install --existing-config --yes
316-
317- - name : Load fixtures (to check that we can update content)
318- run : |
319- docker compose exec phpfpm vendor/bin/drush --yes pm:enable hoeringsportal_base_fixtures $(find web/modules/custom -type f -name 'hoeringsportal_*_fixtures.info.yml' -exec basename -s .info.yml {} \;)
320- docker compose exec phpfpm vendor/bin/drush --yes content-fixtures:load
321- docker compose exec phpfpm vendor/bin/drush --yes pm:uninstall content_fixtures
322-
323- - name : Clean up root stuff
324- run : |
325- sudo chown -Rv $USER:$USER vendor/ web/ private-files/ || true
326- sudo chmod -Rv a+w web/sites/default || true
327-
328- # Install site with our current ref
329- - uses : actions/checkout@v4
330- with :
331- ref : ${{ github.head_ref }}
332- # Keep our local settings (cf.
333- # https://github.com/actions/checkout?tab=readme-ov-file#usage)
334- clean : false
335-
336- - name : setup-docker-and-composer
337- run : |
338- docker compose pull
339- docker compose up --detach
340-
341- # Important: Use --no-interaction to make https://getcomposer.org/doc/06-config.md#discard-changes have effect.
342- docker compose exec phpfpm composer install --no-interaction
343-
344- - name : Update site
345- run : |
346- docker compose exec phpfpm vendor/bin/drush deploy --yes
347-
348160 check-debug-patches :
349161 name : Check that debug patches can be applied and reversed.
350162 runs-on : ubuntu-latest
0 commit comments