Skip to content

Commit a1e5d38

Browse files
committed
Use test suite 2.4
1 parent de819f5 commit a1e5d38

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

.github/workflows/integration.yaml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,10 @@ jobs:
9090
docker tag "${output#*: }" "localhost/restatedev/restate-commit-download:latest"
9191
docker image ls -a
9292
93-
- name: Setup Java
94-
uses: actions/setup-java@v4
95-
with:
96-
distribution: 'temurin'
97-
java-version: '17'
9893
- name: Set up QEMU
9994
uses: docker/setup-qemu-action@v3
10095
- name: Set up Docker Buildx
10196
uses: docker/setup-buildx-action@v3
102-
- name: Setup sdk-test-suite
103-
run: wget --no-verbose https://github.com/restatedev/sdk-test-suite/releases/download/v${{ matrix.sdk-test-suite }}/restate-sdk-test-suite.jar
10497

10598
- name: Build Rust test-services image
10699
id: build
@@ -110,25 +103,14 @@ jobs:
110103
file: "test-services/Dockerfile"
111104
push: false
112105
load: true
113-
tags: localhost/restatedev/test-services:latest
106+
tags: restatedev/rust-test-services
114107
cache-from: type=gha,scope=${{ github.workflow }}
115108
cache-to: type=gha,mode=max,scope=${{ github.workflow }}
116109

117-
# Run test suite
118-
- name: Run test suite
119-
env:
120-
RESTATE_CONTAINER_IMAGE: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
121-
run: java -jar restate-sdk-test-suite.jar run --report-dir=test-report --exclusions-file test-services/exclusions.yaml localhost/restatedev/test-services:latest
122-
123-
# Upload logs and publish test result
124-
- uses: actions/upload-artifact@v4
125-
if: always() # Make sure this is run even when test fails
126-
with:
127-
name: sdk-rust-integration-test-report
128-
path: test-report
129-
- name: Publish Test Results
130-
uses: EnricoMi/publish-unit-test-result-action@v2
131-
if: always()
110+
- name: Run test tool
111+
uses: restatedev/sdk-test-suite@v2.4
132112
with:
133-
files: |
134-
test-report/*/*.xml
113+
restateContainerImage: ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
114+
serviceContainerImage: "restatedev/rust-test-services"
115+
exclusionsFile: "test-services/exclusions.yaml"
116+
testArtifactOutput: "sdk-rust-integration-test-report"

0 commit comments

Comments
 (0)