From ca0e45c1799d64ab35c7bfdc30911e2475c27d4c Mon Sep 17 00:00:00 2001 From: liamhess Date: Thu, 5 Mar 2026 20:05:32 +0100 Subject: [PATCH] ci: split ui and unit tests --- .github/workflows/frontend-ci.yml | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index 5882e32..15ccaaa 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -18,8 +18,31 @@ on: workflow_dispatch: jobs: - test: - name: Run Frontend Tests + unit-tests: + name: Unit Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: frontend/package-lock.json + + - name: Install dependencies + working-directory: frontend + run: npm ci + + - name: Run Unit Tests + working-directory: frontend + run: npm run test + + ui-tests: + name: UI Tests runs-on: ubuntu-latest steps: @@ -44,10 +67,6 @@ jobs: working-directory: frontend run: npm ci - - name: Run Unit Tests - working-directory: frontend - run: npm run test - - name: Run UI Tests run: python3 scripts/run_e2e.py env: