Repository navigation
65 lines (65 loc) · 2.36 KB
/
Copy pathplaywright.yml
File metadata and controls
65 lines (65 loc) · 2.36 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Playwright Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v5
with:
node-version: '24.3.0'
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.12.0
with:
mongodb-version: 4.4
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'
# - name: Install mongosh and import start data in database
# run: |
# sudo apt-get install gnupg
# wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | sudo tee /etc/apt/trusted.gpg.d/server-7.0.asc
# echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
# sudo apt-get update
# sudo apt-get install -y mongodb-mongosh
# mongosh --version
# mongosh localhost:27017/myconext playwright/loadusers.js
- name: Set up cache
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# - name: Build with Maven
# run: mvn clean install --file pom.xml
- name: Run myconext-server
run : cd myconext-server && mvn spring-boot:run -Dspring-boot.run.profiles=dev && sleep 30 &
- name: Run account-gui
run: cd account-gui && yarn install && yarn dev && sleep 10 &
- name: Run myconext-gui
run: cd myconext-gui && yarn install && yarn dev && sleep 10 &
- name: Run servicedesk-gui
run: cd servicedesk-gui && yarn install && yarn dev && sleep 10 &
- name: Run public-gui
run: cd public-gui && yarn install && yarn dev && sleep 10 &
- name: Install dependencies for plarwright
run: cd playwright && npm install -g yarn && yarn
- name: Install Playwright Browsers
run: cd playwright && yarn playwright install --with-deps
- name: Run Playwright tests
run: cd playwright && yarn playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30