Skip to content

Commit 5880f27

Browse files
New test tool with new action (#387)
1 parent 9ad0950 commit 5880f27

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

.github/workflows/integration.yaml

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ jobs:
4545
sdk-test-suite:
4646
if: github.repository_owner == 'restatedev'
4747
runs-on: ubuntu-latest
48-
name: "Features integration test (sdk-test-suite version ${{ matrix.sdk-test-suite }})"
49-
strategy:
50-
matrix:
51-
sdk-test-suite: [ "2.1" ]
48+
name: "Features integration test (sdk-test-suite version 2.2)"
5249
permissions:
5350
contents: read
5451
issues: read
@@ -91,38 +88,17 @@ jobs:
9188
with:
9289
distribution: 'temurin'
9390
java-version: '17'
91+
9492
- name: Setup Gradle
9593
uses: gradle/actions/setup-gradle@v3
9694

97-
- name: Setup sdk-test-suite
98-
run: wget --no-verbose https://github.com/restatedev/sdk-test-suite/releases/download/v${{ matrix.sdk-test-suite }}/restate-sdk-test-suite.jar
99-
10095
- name: Build restatedev/java-test-services image
10196
run: ./gradlew -Djib.console=plain :test-services:jibDockerBuild
10297

103-
- name: Set environment variables
104-
if: ${{ inputs.envVars }}
105-
run: |
106-
for env in "${{ inputs.envVars }}"
107-
do
108-
printf "%s\n" $env >> $GITHUB_ENV
109-
done
110-
111-
# Run test suite
112-
- name: Run test suite
113-
env:
114-
RESTATE_CONTAINER_IMAGE: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
115-
run: java -jar restate-sdk-test-suite.jar run --report-dir=test-report restatedev/java-test-services
116-
117-
# Upload logs and publish test result
118-
- uses: actions/upload-artifact@v4
119-
if: always() # Make sure this is run even when test fails
120-
with:
121-
name: ${{ inputs.testArtifactOutput != '' && inputs.testArtifactOutput || 'sdk-java-integration-test-report' }}
122-
path: test-report
123-
- name: Publish Test Results
124-
uses: EnricoMi/publish-unit-test-result-action@v2
125-
if: always()
98+
- name: Run test tool 2.2
99+
uses: restatedev/[email protected]
126100
with:
127-
files: |
128-
test-report/*/*.xml
101+
envVars: ${{ inputs.envVars }}
102+
testArtifactOutput: ${{ inputs.testArtifactOutput != '' && inputs.testArtifactOutput || 'sdk-java-integration-test-report' }}
103+
restateContainerImage: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
104+
serviceContainerImage: 'restatedev/java-test-services'

0 commit comments

Comments
 (0)