-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ad0950
commit 702ad89
Showing
1 changed file
with
8 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,10 +45,7 @@ jobs: | |
sdk-test-suite: | ||
if: github.repository_owner == 'restatedev' | ||
runs-on: ubuntu-latest | ||
name: "Features integration test (sdk-test-suite version ${{ matrix.sdk-test-suite }})" | ||
strategy: | ||
matrix: | ||
sdk-test-suite: [ "2.1" ] | ||
name: "Features integration test (sdk-test-suite version 2.2)" | ||
permissions: | ||
contents: read | ||
issues: read | ||
|
@@ -91,38 +88,17 @@ jobs: | |
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Setup sdk-test-suite | ||
run: wget --no-verbose https://github.com/restatedev/sdk-test-suite/releases/download/v${{ matrix.sdk-test-suite }}/restate-sdk-test-suite.jar | ||
|
||
- name: Build restatedev/java-test-services image | ||
run: ./gradlew -Djib.console=plain :test-services:jibDockerBuild | ||
|
||
- name: Set environment variables | ||
if: ${{ inputs.envVars }} | ||
run: | | ||
for env in "${{ inputs.envVars }}" | ||
do | ||
printf "%s\n" $env >> $GITHUB_ENV | ||
done | ||
# Run test suite | ||
- name: Run test suite | ||
env: | ||
RESTATE_CONTAINER_IMAGE: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }} | ||
run: java -jar restate-sdk-test-suite.jar run --report-dir=test-report restatedev/java-test-services | ||
|
||
# Upload logs and publish test result | ||
- uses: actions/upload-artifact@v4 | ||
if: always() # Make sure this is run even when test fails | ||
with: | ||
name: ${{ inputs.testArtifactOutput != '' && inputs.testArtifactOutput || 'sdk-java-integration-test-report' }} | ||
path: test-report | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
- name: Run test tool 2.2 | ||
uses: restatedev/[email protected] | ||
with: | ||
files: | | ||
test-report/*/*.xml | ||
envVars: ${{ inputs.envVars }} | ||
testArtifactOutput: ${{ inputs.testArtifactOutput != '' && inputs.testArtifactOutput || 'sdk-java-integration-test-report' }} | ||
restateContainerImage: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }} | ||
serviceContainerImage: 'restatedev/java-test-services' |