38
38
sdk-test-suite :
39
39
if : github.repository_owner == 'restatedev'
40
40
runs-on : ubuntu-latest
41
- name : " Features integration test (sdk-test-suite version ${{ matrix.sdk-test-suite }})"
42
- strategy :
43
- matrix :
44
- sdk-test-suite : [ "2.0" ]
41
+ name : Features integration test
45
42
permissions :
46
43
contents : read
47
44
issues : read
@@ -90,17 +87,10 @@ jobs:
90
87
docker tag "${output#*: }" "localhost/restatedev/restate-commit-download:latest"
91
88
docker image ls -a
92
89
93
- - name : Setup Java
94
- uses : actions/setup-java@v4
95
- with :
96
- distribution : ' temurin'
97
- java-version : ' 17'
98
90
- name : Set up QEMU
99
91
uses : docker/setup-qemu-action@v3
100
92
- name : Set up Docker Buildx
101
93
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
104
94
105
95
- name : Build Rust test-services image
106
96
id : build
@@ -110,25 +100,14 @@ jobs:
110
100
file : " test-services/Dockerfile"
111
101
push : false
112
102
load : true
113
- tags : localhost/ restatedev/test-services:latest
103
+ tags : restatedev/rust- test-services
114
104
cache-from : type=gha,scope=${{ github.workflow }}
115
105
cache-to : type=gha,mode=max,scope=${{ github.workflow }}
116
106
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()
107
+ - name : Run test tool
108
+ uses :
restatedev/[email protected]
132
109
with :
133
- files : |
134
- test-report/*/*.xml
110
+ restateContainerImage : ${{ inputs.restateCommit != '' && 'localhost/restatedev/restate-commit-download:latest' || (inputs.restateImage != '' && inputs.restateImage || 'ghcr.io/restatedev/restate:main') }}
111
+ serviceContainerImage : " restatedev/rust-test-services"
112
+ exclusionsFile : " test-services/exclusions.yaml"
113
+ testArtifactOutput : " sdk-rust-integration-test-report"
0 commit comments