Skip to content

Commit 9913053

Browse files
committed
4565: Added task for site install with fixtures
1 parent b27655a commit 9913053

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

Taskfile.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tasks:
2222

2323
site-install:
2424
prompt: "This will reset your setup. Continue?"
25-
desc: "Install new os2display"
25+
desc: "Install new OS2Display."
2626
cmds:
2727
- task compose -- down
2828
- task compose -- pull
@@ -33,6 +33,20 @@ tasks:
3333
- task site-open
3434
silent: true
3535

36+
site-install-with-fixtures:
37+
prompt: "This will reset your setup. Continue?"
38+
desc: "Install new OS2Display with fixtures installed."
39+
cmds:
40+
- task compose -- down
41+
- task compose -- pull
42+
- task npm-install
43+
- task compose-up
44+
- task composer-install
45+
- task db:migrate --yes
46+
- task fixtures:load --yes
47+
- task site-open
48+
silent: true
49+
3650
site-open:
3751
desc: "Opens admin, docs and client."
3852
cmds:
@@ -86,15 +100,15 @@ tasks:
86100
silent: true
87101

88102
coding-standards:check:
89-
desc: "Check coding standards"
103+
desc: "Check coding standards."
90104
cmds:
91105
- task coding-standards:assets:check
92106
- task coding-standards:php:check
93107
- task coding-standards:markdown:check
94108
- task coding-standards:yml:check
95109

96110
coding-standards:apply:
97-
desc: "Apply coding standards"
111+
desc: "Apply coding standards."
98112
cmds:
99113
- task coding-standards:assets:apply
100114
- task coding-standards:php:apply
@@ -125,23 +139,23 @@ tasks:
125139
- docker compose run --rm --volume "$PWD:/md" prettier 'assets/**/*.{js,jsx}' --check
126140

127141
coding-standards:markdown:apply:
128-
desc: "Apply coding standards for Markdown"
142+
desc: "Apply coding standards for Markdown."
129143
cmds:
130144
- docker compose run --rm --volume "$PWD:/md" markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'documentation/*.md' --fix
131145

132146
coding-standards:markdown:check:
133-
desc: "Check coding standards for Markdown"
147+
desc: "Check coding standards for Markdown."
134148
cmds:
135149
- docker compose run --rm --volume "$PWD:/md" markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'documentation/*.md'
136150

137151
coding-standards:php:apply:
138-
desc: "Apply coding standards for PHP"
152+
desc: "Apply coding standards for PHP."
139153
cmds:
140154
- task compose -- exec phpfpm vendor/bin/php-cs-fixer fix --diff
141155
silent: true
142156

143157
coding-standards:php:check:
144-
desc: "Check coding standards for PHP"
158+
desc: "Check coding standards for PHP."
145159
cmds:
146160
- task compose -- exec phpfpm vendor/bin/php-cs-fixer fix --dry-run --diff
147161
silent: true
@@ -152,7 +166,7 @@ tasks:
152166
- task composer -- code-analysis
153167

154168
psalm:update-baseline:
155-
desc: "Updates the Psalm baseline file"
169+
desc: "Updates the Psalm baseline file."
156170
cmds:
157171
- task compose -- exec phpfpm vendor/bin/psalm --update-baseline
158172

@@ -173,32 +187,32 @@ tasks:
173187
silent: true
174188

175189
test:api:
176-
desc: "Runs API tests (PHPUnit)"
190+
desc: "Runs API tests (PHPUnit)."
177191
cmds:
178192
- task composer -- test-setup
179193
- task compose -- exec --env SYMFONY_DEPRECATIONS_HELPER=disabled phpfpm composer test
180194

181195
test:frontend-built:
182-
desc: "Runs frontend tests (Playwright) on the built files. This temporarily stops the node container"
196+
desc: "Runs frontend tests (Playwright) on the built files. This temporarily stops the node container."
183197
cmds:
184198
- ./scripts/test
185199

186200
test:frontend-local:
187-
desc: "Runs frontend tests from the local machine"
201+
desc: "Runs frontend tests from the local machine."
188202
cmds:
189203
- BASE_URL="https://display.local.itkdev.dk" npx playwright test
190204

191205
test:frontend-local-ui:
192-
desc: "Runs frontend tests from the local machine in UI mode"
206+
desc: "Runs frontend tests from the local machine in UI mode."
193207
cmds:
194208
- BASE_URL="https://display.local.itkdev.dk" npx playwright test --ui
195209

196210
generate:api-spec:
197-
desc: "Generate the OpenAPI specifications (in public/) from the API Platform config"
211+
desc: "Generate the OpenAPI specifications (in public/) from the API Platform config."
198212
cmds:
199213
- task compose -- exec phpfpm composer update-api-spec
200214

201215
generate:redux-toolkit-api:
202-
desc: "Generate the RTK Query api slices (in assets/shared/redux/)"
216+
desc: "Generate the RTK Query api slices (in assets/shared/redux/)."
203217
cmds:
204218
- task compose -- exec node npx @rtk-query/codegen-openapi /app/assets/shared/redux/openapi-config.js

0 commit comments

Comments
 (0)