Skip to content

Commit 58b8e62

Browse files
committed
ci: use backend-sdk action, add FDI version
1 parent 332c51f commit 58b8e62

File tree

1 file changed

+4
-39
lines changed

1 file changed

+4
-39
lines changed

.github/workflows/backend-sdk-test.yml

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
outputs:
1515
# fdiVersions: ${{ steps.versions.outputs.fdiVersions }}
16-
fdiVersions: '["4.0"]'
16+
fdiVersions: '["4.0", "3.1"]'
1717
# cdiVersions: ${{ steps.versions.outputs.cdiVersions }}
1818
cdiVersions: '["5.2"]'
1919
# pyVersions: '["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]'
@@ -28,19 +28,21 @@ jobs:
2828
has-cdi: true
2929

3030
test:
31-
name: Backend SDK Tests
3231
runs-on: ubuntu-latest
3332
needs: define-versions
33+
3434
strategy:
3535
fail-fast: false
3636
matrix:
3737
cdi-version: ${{ fromJSON(needs.define-versions.outputs.cdiVersions) }}
3838
fdi-version: ${{ fromJSON(needs.define-versions.outputs.fdiVersions) }}
3939
py-version: ${{ fromJson(needs.define-versions.outputs.pyVersions) }}
4040
node-version: ${{ fromJson(needs.define-versions.outputs.nodeVersions) }}
41+
4142
env:
4243
API_PORT: 3030
4344
ST_CONNECTION_URI: http://localhost:8081
45+
4446
steps:
4547
- uses: actions/checkout@v4
4648
with:
@@ -82,40 +84,3 @@ jobs:
8284
# version: ${{ matrix.fdi-version }}
8385
version: ci/github-actions/containerized-core/4.0
8486
path: backend-sdk-testing
85-
86-
# - name: Setup backend-sdk-testing
87-
# working-directory: backend-sdk-testing
88-
# run: |
89-
# npm install
90-
# npm run build
91-
92-
# - name: Run tests
93-
# working-directory: backend-sdk-testing
94-
# run: |
95-
# npm test
96-
# env:
97-
# SUPERTOKENS_CORE_TAG: ${{ steps.versions.outputs.coreTag }}
98-
# TEST_MODE: testing
99-
# NODE_PORT: 8081
100-
101-
# - name: Fix paths
102-
# working-directory: backend-sdk-testing
103-
# if: always()
104-
# # Doing it in the shell since the Reporter's `transformers` don't seem to work
105-
# run: sed -i "s|$GITHUB_WORKSPACE/backend-sdk-testing/test||g" test-results.xml
106-
107-
# - name: Reporter
108-
# # Alternative: dorny/test-reporter@v1 - does not create a summary
109-
# uses: mikepenz/action-junit-report@v5
110-
# if: always()
111-
# with:
112-
# report_paths: backend-sdk-testing/test-results.xml
113-
# check_name: Backend SDK Tests (${{matrix.cdi-version}}, ${{matrix.fdi-version}}, ${{matrix.node-version}})
114-
# # Include table with all test results in the summary
115-
# detailed_summary: true
116-
# # Group the testcases by test suite in the detailed_summary
117-
# group_suite: true
118-
# # Fail if no test are found.
119-
# require_tests: true
120-
# # Fail the build in case of a test failure.
121-
# fail_on_failure: true

0 commit comments

Comments
 (0)