Skip to content

Commit

Permalink
test: use locally published maven artifacts in example project test.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Nov 16, 2024
1 parent d26506d commit 277e42d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Install Maven dependencies locally
run: ./gradlew publishToMavenLocal

- name: Test JUnit example project
working-directory: ./examples/junit-sample
run: ./mvnw test
run: |
PUBLISHED_VERSION=$( cat gradle.properties | grep projectVersion= | cut -c16- )
./mvnw test -Dimposter.version=${PUBLISHED_VERSION}
- name: Publish Unit Test Results
if: always()
Expand Down
2 changes: 1 addition & 1 deletion examples/junit-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<maven.compiler.target>1.8</maven.compiler.target>

<!-- choose latest release from https://github.com/outofcoffee/imposter/releases -->
<imposter.version>3.38.2</imposter.version>
<imposter.version>4.2.2</imposter.version>
</properties>

<repositories>
Expand Down

0 comments on commit 277e42d

Please sign in to comment.