File tree Expand file tree Collapse file tree 5 files changed +58
-20
lines changed
Expand file tree Collapse file tree 5 files changed +58
-20
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set up JDK 8
18+ uses : actions/setup-java@v4
19+ with :
20+ java-version : ' 8'
21+ distribution : ' temurin'
22+
23+ - name : Install Firefox
24+ uses : browser-actions/setup-firefox@v1
25+ with :
26+ firefox-version : latest
27+
28+ - name : Verify environment
29+ run : |
30+ java -version
31+ mvn --version
32+ firefox --version
33+ ls -la driver/linux/
34+
35+ - name : Cache Maven dependencies
36+ uses : actions/cache@v4
37+ with :
38+ path : ~/.m2
39+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
40+ restore-keys : ${{ runner.os }}-m2
41+
42+ - name : Run tests
43+ run : mvn clean test -Dspring.profiles.active=live -Dcountry=com -Dbrowser=firefox -Dmode=headless
44+ env :
45+ MOZ_HEADLESS : 1
46+
47+ - name : Upload test results
48+ if : always()
49+ uses : actions/upload-artifact@v4
50+ with :
51+ name : test-results
52+ path : |
53+ target/surefire-reports/
54+ allure-results/
55+ retention-days : 30
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # Java Selenium Framework [ ![ Build Status ] ( https://travis-ci.org /edinc/java-selenium-framework. svg?branch=master )] ( https://travis-ci.org /edinc/java-selenium-framework )
1+ # Java Selenium Framework [ ![ CI ] ( https://github.com /edinc/java-selenium-framework/actions/workflows/ci.yml/badge. svg )] ( https://github.com /edinc/java-selenium-framework/actions/workflows/ci.yml )
22
33The Selenium Java Framework is a good starting point for writing your UI automated tests utilizing Java,
44Selenium and Zalenium for running the tests in a CI manner.
Original file line number Diff line number Diff line change 2525 <dependency >
2626 <groupId >org.seleniumhq.selenium</groupId >
2727 <artifactId >selenium-java</artifactId >
28- <version >3.12.0 </version >
28+ <version >3.141.59 </version >
2929 </dependency >
3030 <dependency >
3131 <groupId >org.hamcrest</groupId >
5151 <dependency >
5252 <groupId >org.springframework</groupId >
5353 <artifactId >spring-web</artifactId >
54- <version >6.1.21 </version >
54+ <version >4.2.4.RELEASE </version >
5555 </dependency >
5656 <dependency >
5757 <groupId >org.springframework</groupId >
9494 </suiteXmlFiles >
9595 <argLine >
9696 -javaagent:"${settings.localRepository} /org/aspectj/aspectjweaver/${aspectj.version} /aspectjweaver-${aspectj.version} .jar"
97- --add-opens java.base/java.lang=ALL-UNNAMED
98- --add-opens java.base/java.lang.reflect=ALL-UNNAMED
99- --add-opens java.base/java.security=ALL-UNNAMED
10097 </argLine >
10198 <properties >
10299 <property >
You can’t perform that action at this time.
0 commit comments