File tree Expand file tree Collapse file tree 1 file changed +76
-0
lines changed
Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ name : PR Tests
2+
3+ on :
4+ pull_request :
5+ types :
6+ - opened
7+ - synchronize
8+ - reopened
9+ - ready_for_review
10+ workflow_dispatch :
11+
12+ concurrency :
13+ group : pr-tests-${{ github.event.pull_request.number || github.ref }}
14+ cancel-in-progress : true
15+
16+ permissions :
17+ contents : read
18+
19+ jobs :
20+ web-tests :
21+ name : Web Build And Test
22+ if : ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
23+ runs-on : ubuntu-latest
24+ defaults :
25+ run :
26+ working-directory : web
27+
28+ steps :
29+ - name : Check out repository
30+ uses : actions/checkout@v4
31+
32+ - name : Set up pnpm
33+ uses : pnpm/action-setup@v4
34+ with :
35+ version : 9
36+
37+ - name : Set up Node.js
38+ uses : actions/setup-node@v4
39+ with :
40+ node-version : 20
41+ cache : pnpm
42+ cache-dependency-path : web/pnpm-lock.yaml
43+
44+ - name : Install dependencies
45+ run : pnpm install --frozen-lockfile
46+
47+ - name : Build frontend
48+ run : pnpm build
49+
50+ - name : Run frontend unit tests
51+ run : pnpm test
52+
53+ server-tests :
54+ name : Server Unit Tests
55+ if : ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
56+ runs-on : ubuntu-latest
57+ defaults :
58+ run :
59+ working-directory : server
60+
61+ steps :
62+ - name : Check out repository
63+ uses : actions/checkout@v4
64+
65+ - name : Set up Java
66+ uses : actions/setup-java@v4
67+ with :
68+ distribution : temurin
69+ java-version : 21
70+ cache : maven
71+
72+ - name : Ensure Maven wrapper is executable
73+ run : chmod +x mvnw
74+
75+ - name : Run backend unit tests
76+ run : ./mvnw test
You can’t perform that action at this time.
0 commit comments