Skip to content

Commit c10f90e

Browse files
committed
Added manual playwright run
1 parent 8613da6 commit c10f90e

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: "E2E: Playwright Manual run"
2+
on:
3+
workflow_dispatch:
4+
sha:
5+
required: true
6+
type: string
7+
8+
permissions:
9+
contents: read
10+
checks: write
11+
statuses: write
12+
13+
jobs:
14+
build-and-test:
15+
runs-on: mcr.microsoft.com/playwright:v1.52.0-noble
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # infered from @v4
19+
with:
20+
token: ${{ github.token }}
21+
ref: ${{ inputs.sha }}
22+
- name: Set up JDK
23+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # infered from @v4
24+
with:
25+
java-version: '21'
26+
distribution: 'zulu'
27+
cache: 'gradle'
28+
29+
- name: Set up Node.js
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: 18
33+
34+
- name: Install NPM dependencies
35+
working-directory: ./e2e-playwright
36+
run: npm install
37+
38+
- name: Install Playwright browsers
39+
working-directory: ./e2e-playwright
40+
run: npx playwright install
41+
42+
- name: Build with Gradle
43+
id: build_app
44+
run: |
45+
./gradlew clean build \
46+
-x test \
47+
-Pbuild-docker-images=true \
48+
-Pinclude-frontend=true \
49+
-Pversion=latest
50+
51+
- name: Run docker-compose
52+
run: docker compose -f ./documentation/compose/e2e-tests.yaml up -d
53+
54+
- name: Run tests with ENV=prod
55+
working-directory: ./e2e-playwright
56+
run: ENV=prod HEAD=false BASEURL=http://localhost:8080 npm run test
57+
58+

e2e-playwright/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ jobs:
5252
run: npx playwright install
5353

5454
- name: 🚀 Run tests with ENV=prod
55-
run: cross-env ENV=prod HEAD=false BASEURL=http://localhost:8080 npm run test
55+
run: ENV=prod HEAD=false BASEURL=http://localhost:8080 npm run test
5656

0 commit comments

Comments
 (0)