Skip to content

Commit c3f5861

Browse files
committed
fix: test command
1 parent 3d69d4e commit c3f5861

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/unit-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,18 @@ jobs:
100100
ST_PLUGIN_NAME: ${{ matrix.plugin }}
101101
run: |
102102
cd supertokens-root
103-
./gradlew test ${{ steps.split-tests.outputs.test-suite }}
103+
echo "./gradlew test \\" > test.sh
104+
chmod +x test.sh
105+
IFS=',' read -ra TESTS <<< "${{ steps.split-tests.outputs.test-suite }}"
106+
for test in "${TESTS[@]}"; do
107+
test_name="${test%.java}"
108+
test_name="${test_name#src/test/java/}"
109+
test_name="${test_name//\//.}"
110+
echo "--tests $test_name \\" >> test.sh
111+
done
112+
echo "" >> test.sh
113+
cat test.sh
114+
./test.sh
104115
- name: Publish Test Report
105116
uses: mikepenz/action-junit-report@v5
106117
if: always()

0 commit comments

Comments
 (0)