mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-12 21:05:19 +02:00
fix: build TypeScript assets before running PHPUnit in CI
The tests job ran bin/console sass:build but never typescript:build, so var/typescript/ didn't exist and any page rendering the importmap (e.g. backoffice/base.html.twig) errored during tests.
This commit is contained in:
@@ -176,6 +176,8 @@ jobs:
|
|||||||
run: docker compose up php database --wait --no-build
|
run: docker compose up php database --wait --no-build
|
||||||
- name: Build SCSS
|
- name: Build SCSS
|
||||||
run: docker compose exec -T php bin/console sass:build
|
run: docker compose exec -T php bin/console sass:build
|
||||||
|
- name: Build TypeScript
|
||||||
|
run: docker compose exec -T php bin/console typescript:build
|
||||||
- name: Create test database
|
- name: Create test database
|
||||||
run: docker compose exec -T php bin/console -e test doctrine:database:create
|
run: docker compose exec -T php bin/console -e test doctrine:database:create
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
|
|||||||
Reference in New Issue
Block a user