Repository navigation
73 lines (61 loc) · 1.86 KB
/
Copy pathe2e.yml
File metadata and controls
73 lines (61 loc) · 1.86 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
66
67
68
69
70
71
72
73
name: E2E Tests
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
concurrency:
group: e2e-${{ github.event.pull_request.head.ref || github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
e2e:
name: playwright-smoke-tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@v6.3.0
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
cache-dependency-path: '**/pom.xml'
- name: Set up Node
uses: actions/setup-node@v7.1.0
with:
node-version: '26'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Build servlet sample
run: ./mvnw -B --no-transfer-progress install -DskipTests -pl spring-boot-admin-samples/spring-boot-admin-sample-servlet -am
- name: Install dependencies
working-directory: spring-boot-admin-e2e
run: npm ci
- name: Check formatting and types
working-directory: spring-boot-admin-e2e
run: |
npm run format
npm run typecheck
- name: Install Playwright browser
working-directory: spring-boot-admin-e2e
run: npx playwright install --with-deps chromium
- name: Run E2E tests
working-directory: spring-boot-admin-e2e
run: npm test
- name: Upload report
if: always()
uses: actions/upload-artifact@v7.0.2
with:
name: playwright-report
path: |
spring-boot-admin-e2e/target/playwright-report
spring-boot-admin-e2e/target/test-results
spring-boot-admin-e2e/target/logs
if-no-files-found: ignore
retention-days: 14