From 91938627cc74e0d98e85d90216c59a6583269932 Mon Sep 17 00:00:00 2001 From: hotungkhanh Date: Wed, 23 Oct 2024 17:06:51 +1100 Subject: [PATCH] ci: :test_tube: add 'npm run test' to yml --- .github/workflows/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a96a53a..c9efee5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,6 +4,8 @@ on: push: branches: - main + - handover + jobs: build: @@ -26,7 +28,11 @@ jobs: - name: Build Frontend run: | cd frontend + npm run test npm run build + env: + VITE_FRONTEND_USERNAME: ${{secrets.FRONTEND_USERNAME}} + VITE_FRONTEND_PASSWORD: ${{secrets.FRONTEND_PASSWORD}} - name: Set up Java for Backend uses: actions/setup-java@v4