Skip to content

ci: add JUnit sample test workflow#6

Merged
outofcoffee merged 0 commit into
fix/junit-sample-jackson-versionfrom
ci/junit-sample-workflow
May 27, 2026
Merged

ci: add JUnit sample test workflow#6
outofcoffee merged 0 commit into
fix/junit-sample-jackson-versionfrom
ci/junit-sample-workflow

Conversation

@outofcoffee
Copy link
Copy Markdown
Contributor

Adds a GitHub Actions workflow that runs the junit-sample integration test against imposter-jvm-engine's main, mirroring the check that lives in the engine repo today.

Summary

  • Add .github/workflows/junit-sample.yaml: checks out this repo and imposter-project/imposter-jvm-engine, publishes the engine to a local Maven repo (./gradlew publishToMavenLocal -xtest), then runs ./mvnw test against the locally-published SNAPSHOT
  • Triggers: push to main, pull requests, and manual workflow_dispatch
  • Publishes JUnit results via EnricoMi/publish-unit-test-result-action so failures surface as checks

Implementation details

This is a near-mirror of the existing Examples job in imposter-jvm-engine. Both jobs end up testing the same combination of sample + engine, but having it here lets contributions to the examples repo block on the same check before merge — previously, a breaking change to a sample pom (like the Jackson version drift fixed in #5) would only be caught by the engine's CI on its next run.

The job pins Java 11 to match the engine's build toolchain; setup-java's cache: 'maven' covers the sample's mvnw downloads. The 15-minute timeout gives Gradle's first-time publishToMavenLocal enough headroom on a cold cache.

Stacked on top of #5 — re-targets main once that merges.

@outofcoffee outofcoffee added enhancement New feature or request test labels May 27, 2026
@outofcoffee outofcoffee self-assigned this May 27, 2026
@outofcoffee outofcoffee force-pushed the ci/junit-sample-workflow branch from 99d9b4e to b00e86a Compare May 27, 2026 15:51
@outofcoffee outofcoffee merged commit b00e86a into fix/junit-sample-jackson-version May 27, 2026
@outofcoffee outofcoffee force-pushed the fix/junit-sample-jackson-version branch from 952d065 to 5c73293 Compare May 27, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant