-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.36 KB
/
playwright.yml
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
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Package the server to serve API and JS
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Install Kumite Server
# `install` so that each module is available in local repository, as later mvn command will not be executed on the root
run: mvn install -DskipTests -pl :server -am
# - name: Check Running ContestsServer
# run: (cd ./server; mvn spring-boot:run;)
# - name: Check Running ContestsServer from JS
# working-directory: ./js
# run: (cd ./server; mvn spring-boot:run;)
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install NPM dependencies
working-directory: ./js
run: npm ci
- name: Install Playwright Browsers
working-directory: ./js
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: ./js
run: npm run pw_localhost8080
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30