-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (73 loc) · 2.26 KB
/
Copy pathjava.yml
File metadata and controls
83 lines (73 loc) · 2.26 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
74
75
76
77
78
79
80
81
82
83
name: "Java · Regression (path-filtered)"
on:
pull_request:
branches:
- master
paths:
- stacks/java-selenium-testng/**
- scenarios/**
- tools/**
- .github/workflows/java.yml
push:
branches:
- master
paths:
- stacks/java-selenium-testng/**
- scenarios/**
- tools/**
- .github/workflows/java.yml
workflow_dispatch:
permissions:
contents: read
jobs:
java-regression:
name: "Java regression · ${{ matrix.browser }}"
runs-on: ubuntu-24.04
timeout-minutes: 35
strategy:
fail-fast: false
matrix:
browser:
- chrome
- firefox
services:
website:
image: gprestes/the-internet:v2.6.5@sha256:205b8fc712747ea5fa1a0d54b01fa02d65e3f67a448c7a5c2aba65b211def171
ports:
- 7080:5000
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '25'
cache: maven
- name: Run Java regression
run: >-
mvn -B -f stacks/java-selenium-testng/pom.xml -P CLI_Parameters clean test
-DsuiteXmlFile=src/test/resources/regression.xml
-Dbrowser=${{ matrix.browser }}
-DbrowserVersion=
-DheadlessBrowser=true
-DuseSeleniumGrid=false
-DtestsThreadCount=1
-DwebAppAddress=http://localhost:7080
-DtestRunnerAddress=http://localhost:7080
-DseleniumGridAddress=http://localhost:4444/wd/hub
- name: Stage Java reports
if: always()
run: |
report_dir="artifacts/java/${GITHUB_RUN_ID}/${{ matrix.browser }}/surefire-reports"
mkdir -p "$report_dir"
if [ -d stacks/java-selenium-testng/target/surefire-reports ]; then
find stacks/java-selenium-testng/target/surefire-reports -name '*.xml' -exec cp {} "$report_dir/" \;
fi
- name: Upload Surefire XML
if: always()
uses: actions/upload-artifact@v4
with:
name: java-${{ matrix.browser }}-${{ github.run_id }}-surefire-xml
path: artifacts/java/${{ github.run_id }}/${{ matrix.browser }}/
if-no-files-found: warn