Add frontend tests workflow and update paths for Go and TypeScript workflows

This commit is contained in:
2025-05-29 17:12:42 +02:00
parent 37c49dc0cc
commit 57b9d4cc89
3 changed files with 43 additions and 0 deletions

39
.github/workflows/frontend-tests.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: Frontend Tests
permissions:
contents: read
on:
push:
branches:
- "*"
paths:
- "app/**"
pull_request:
branches:
- main
jobs:
test:
name: Run Frontend Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "./app/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Run Vitest tests
run: npm test