Skip to content

Commit

Permalink
Move end-to-end tests to a separate workflow (#1052)
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Jordan <norman.jordan@improving.com>
(cherry picked from commit 0dc2d2a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Feb 25, 2025
1 parent 261d106 commit fda450d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/end-to-end-test-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: End-to-End Tests

on:
pull_request:
push:

jobs:
build:
strategy:
fail-fast: false
matrix:
entry:
- { os: ubuntu-latest, java: 11 }
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11

- name: Set up SBT
uses: sbt/setup-sbt@v1

- name: Set SBT_OPTS
# Needed to extend the JVM memory size to avoid OutOfMemoryError for HTML test report
run: echo "SBT_OPTS=-Xmx2G" >> $GITHUB_ENV

- name: End-to-End Test
run: sbt e2etest/test

- name: Upload test report
if: always() # Ensures the artifact is saved even if tests fail
uses: actions/upload-artifact@v4
with:
name: test-reports
path: target/test-reports # Adjust this path if necessary
2 changes: 1 addition & 1 deletion .github/workflows/test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: echo "SBT_OPTS=-Xmx2G" >> $GITHUB_ENV

- name: Integ Test
run: sbt integtest/integration e2etest/test
run: sbt integtest/integration

- name: Upload test report
if: always() # Ensures the artifact is saved even if tests fail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class EndToEndITSuite extends AnyFlatSpec with TableDrivenPropertyChecks with Be
}
}
}.start()
val completed = dockerProcess.waitFor(30, TimeUnit.MINUTES)
val completed = dockerProcess.waitFor(20, TimeUnit.MINUTES)
stopReading = true
if (!completed) {
throw new IllegalStateException("Unable to start docker cluster")
Expand Down

0 comments on commit fda450d

Please sign in to comment.