Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,39 @@ jobs:
-F variables[DOCKER_TAG]=development \
-F ref=development \
${{ secrets.GITLAB_RODA_DEV_TRIGGER }}

e2e:
runs-on: ubuntu-latest
needs: merge
env:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
- name: Cache Maven dependencies
uses: actions/cache@v5
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Login to DockerHub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Pull RODA development image
run: docker pull docker.io/keeps/roda:development
- name: Run E2E API tests
run: mvn $MAVEN_CLI_OPTS -Pe2e test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public abstract class AbstractApiTest {
*/
@BeforeSuite(alwaysRun = true)
public void startEnvironment() {
if (COMPOSE != null) {
LOGGER.info("RODA Docker Compose stack already running; skipping re-initialization");
return;
}
LOGGER.info("Starting RODA Docker Compose stack from {}", COMPOSE_FILE.getAbsolutePath());

COMPOSE = new ComposeContainer(COMPOSE_FILE)
Expand Down
Loading
Loading