File tree Expand file tree Collapse file tree
dubbo-admin-test/src/test/java/org/apache/dubbo/admin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,20 @@ jobs:
1111 timeout-minutes : 30
1212 steps :
1313 - uses : actions/checkout@v4
14+
1415 - name : Set up JDK ${{ matrix.java }}
1516 uses : actions/setup-java@v4
1617 with :
1718 distribution : ' temurin'
1819 java-version : ${{ matrix.java }}
1920 cache : ' maven'
21+
22+ - name : Setup Chrome
23+ uses : browser-actions/setup-chrome@v1
24+
25+ - name : Verify Chrome Installation
26+ run : google-chrome --version
27+
2028 - name : Build with Maven
2129 run : ./mvnw clean install --batch-mode -DskipTests=false -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true
2230 - name : Upload coverage to codecov
Original file line number Diff line number Diff line change 4545 with :
4646 flags : integration
4747 directory : ./jacoco
48+
Original file line number Diff line number Diff line change 2525import org .fluentlenium .core .annotation .Page ;
2626import org .junit .BeforeClass ;
2727import org .openqa .selenium .WebDriver ;
28+ import org .openqa .selenium .chrome .ChromeDriver ;
29+ import org .openqa .selenium .chrome .ChromeOptions ;
2830import org .slf4j .Logger ;
2931import org .slf4j .LoggerFactory ;
3032
@@ -47,9 +49,22 @@ public BaseIT() {
4749 public static void beforeClass () {
4850 WebDriverManager .chromedriver ().setup ();
4951
52+ ChromeOptions options = new ChromeOptions ();
53+ options .addArguments ("--headless" ); // Run in headless mode
54+ options .addArguments ("--disable-gpu" );
55+ options .addArguments ("--no-sandbox" );
56+ options .addArguments ("--disable-dev-shm-usage" );
57+
58+ driver = new ChromeDriver (options );
59+
5060 BASE_URL = StringUtils .defaultString (System .getenv ("BASEURL" ), "http://localhost:8082" );
5161 }
5262
63+ @ Override
64+ public WebDriver newWebDriver () {
65+ return driver ;
66+ }
67+
5368 @ Override
5469 public String getBaseUrl () {
5570 return BASE_URL ;
You can’t perform that action at this time.
0 commit comments