Skip to content

Commit 7d04747

Browse files
authored
Merge pull request #25 from edinc/copilot/fix-24
Switch from Travis CI to GitHub Actions and fix Java compatibility issues
2 parents 49ff60c + 5983ff1 commit 7d04747

File tree

5 files changed

+58
-20
lines changed

5 files changed

+58
-20
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
The Selenium Java Framework is a good starting point for writing your UI automated tests utilizing Java,
44
Selenium and Zalenium for running the tests in a CI manner.

driver/linux/geckodriver

1.46 MB
Binary file not shown.

pom.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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>
@@ -51,7 +51,7 @@
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>
@@ -94,9 +94,6 @@
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>

0 commit comments

Comments
 (0)