From be1bf6cedbc4b8a5bc65e19e2d4006c527dd4cf9 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 1 Aug 2024 21:18:57 +0000 Subject: [PATCH] fix: build frontend for unit tests --- .github/actions/setup-project/action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-project/action.yml b/.github/actions/setup-project/action.yml index bfe8d1d..e80bc9c 100644 --- a/.github/actions/setup-project/action.yml +++ b/.github/actions/setup-project/action.yml @@ -10,6 +10,7 @@ inputs: seed-database: description: Whether to seed the database or not default: 'false' + runs: using: composite steps: @@ -42,4 +43,10 @@ runs: if: inputs.seed-database == 'true' run: php artisan db:seed shell: bash - working-directory: ./${{ inputs.path }} \ No newline at end of file + working-directory: ./${{ inputs.path }} + + - name: Build frontend assets + if: inputs.setup-node == 'true' + run: npm run build + shell: bash + working-directory: ./${{ inputs.path }}