Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

ci: add client test job and split coverage artifacts

jubnl8e69ad44f0c0
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 70eea8195..6c11b4813 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -9,6 +9,7 @@ on:
paths:
- 'server/**'
- '.github/workflows/test.yml'
+ - 'client/**'
jobs:
server-tests:
@@ -34,6 +35,33 @@ jobs:
if: success()
uses: actions/upload-artifact@v6
with:
- name: coverage
+ name: backend-coverage
path: server/coverage/
retention-days: 7
+
+ client-tests:
+ name: Client Tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v6
+
+ - uses: actions/setup-node@v6
+ with:
+ node-version: 22
+ cache: npm
+ cache-dependency-path: client/package-lock.json
+
+ - name: Install dependencies
+ run: cd client && npm ci
+
+ - name: Run tests
+ run: cd client && npm run test:coverage
+
+ - name: Upload coverage
+ if: success()
+ uses: actions/upload-artifact@v6
+ with:
+ name: frontend-coverage
+ path: client/coverage/
+ retention-days: 7