-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 1.01 KB
/
frontend-tests.yaml
File metadata and controls
48 lines (40 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Frontend Tests
on:
pull_request:
branches:
- main
- develop
- production
- "frontend/**"
- "testing-view/**"
- "competition-view/**"
paths:
- "frontend/**"
- "pnpm-lock.yaml"
- ".github/workflows/frontend-tests.yaml"
push:
branches:
- "frontend/**"
- "testing-view/**"
- "competition-view/**"
paths:
- "frontend/**"
- "pnpm-lock.yaml"
- ".github/workflows/frontend-tests.yaml"
jobs:
test:
name: Run Frontend Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile --filter=testing-view --filter=ui --filter=core
- name: Build frontend
run: pnpm build --filter="./frontend/**"
- name: Run tests
run: pnpm test --filter="./frontend/**"