From 5781402bf064446c574367eef070e8655ea57c40 Mon Sep 17 00:00:00 2001 From: Shun Usami Date: Sat, 28 Oct 2023 23:41:15 +0900 Subject: [PATCH] [CI] Build frontend before running tests --- .github/workflows/test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3935e2af..e44cfce4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,8 +18,11 @@ jobs: - name: Build images run: docker compose build + - name: Build frontend + run: docker compose run frontend npm build + - name: Run backend unit tests - run: docker compose run backend sh -c "yarn test" + run: docker compose run backend yarn test - name: Run backend e2e tests - run: docker compose run backend sh -c "yarn test:e2e" + run: docker compose run backend yarn test:e2e