diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8099634..aca29594 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ on: branches: ["*"] # Run on PRs to all branches jobs: - test: + backend-test: runs-on: ubuntu-latest strategy: matrix: @@ -51,3 +51,29 @@ jobs: pytest.xml .coverage retention-days: 30 + + ui-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + cache-dependency-path: ui/package-lock.json + + - name: Install UI dependencies + working-directory: ./ui + run: npm ci + + - name: Run UI linting + working-directory: ./ui + run: npm run lint + + - name: Run UI build + working-directory: ./ui + run: npm run build