Skip to content

Commit 1b94ae9

Browse files
authored
test: run regression tests against localhost:8080/webapp (#2067)
2 parents c6d12c9 + 0312c91 commit 1b94ae9

3 files changed

Lines changed: 10 additions & 35 deletions

File tree

.github/pull_request_template.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
<!-- How can the reviewer verify the functionality or fix introduced by this PR? Please provide steps. -->
1515
*
1616

17-
### Regression Tests
18-
<!-- If this PR affects the frontend code or backend code, please run the regression tests on localhost. -->
19-
- [ ] I ran `mvn verify -P regression-test-rest`
20-
- [ ] I ran `mvn verify -P regression-test-ui`
21-
2217
### Screenshots
2318
<!-- If this PR affects the UI, please include before/after screenshots demonstrating the change(s). -->
2419
*

.github/workflows/maven-regression-test-rest.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
test_rest_ENG:
10+
test_rest_localhost:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
@@ -17,17 +17,7 @@ jobs:
1717
java-version: 17
1818
cache: maven
1919
- run: mvn clean
20-
- run: mvn verify -P regression-test-rest -D base.url=http://eng.elimu.ai
21-
22-
test_rest_THA:
23-
needs: test_rest_ENG
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v4
27-
- uses: actions/setup-java@v4
28-
with:
29-
distribution: 'temurin'
30-
java-version: 17
31-
cache: maven
32-
- run: mvn clean
33-
- run: mvn verify -P regression-test-rest -D base.url=http://tha.elimu.ai
20+
- run: mvn compile
21+
- run: mvn jetty:run &
22+
- run: sleep 120
23+
- run: mvn verify -P regression-test-rest

.github/workflows/maven-regression-test-ui.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ "main" ]
88

99
jobs:
10-
test_ui_ENG:
10+
test_ui_localhost:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
@@ -17,17 +17,7 @@ jobs:
1717
java-version: 17
1818
cache: maven
1919
- run: mvn clean
20-
- run: mvn verify -P regression-test-ui -D headless=true -D base.url=http://eng.elimu.ai
21-
22-
test_ui_THA:
23-
needs: test_ui_ENG
24-
runs-on: ubuntu-latest
25-
steps:
26-
- uses: actions/checkout@v4
27-
- uses: actions/setup-java@v4
28-
with:
29-
distribution: 'temurin'
30-
java-version: 17
31-
cache: maven
32-
- run: mvn clean
33-
- run: mvn verify -P regression-test-ui -D headless=true -D base.url=http://tha.elimu.ai
20+
- run: mvn compile
21+
- run: mvn jetty:run &
22+
- run: sleep 120
23+
- run: mvn verify -P regression-test-ui -D headless=true

0 commit comments

Comments
 (0)