Skip to content

Commit 0e5599b

Browse files
Erik Bylundkirre-bylund
authored andcommitted
Configure tests to run both zerodep and newtonsoft json
1 parent 9ec50aa commit 0e5599b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
key: Library-${{ matrix.unityVersion }}-${{ matrix.testMode }}
5555
restore-keys: Library-
5656

57-
- name: Run tests ${{ matrix.unityVersion }}-${{ matrix.testMode }}
57+
- name: Run tests ${{ matrix.unityVersion }}-${{ matrix.testMode }} with ZeroDepJSON
5858
uses: game-ci/unity-test-runner@v2
5959
id: tests
6060
env:
@@ -69,6 +69,24 @@ jobs:
6969
unityVersion: ${{ matrix.unityVersion }}
7070
githubToken: ${{ secrets.GITHUB_TOKEN }}
7171
customParameters: -apikey ${{ secrets.LOOTLOCKER_API_KEY }} -domainkey ${{ secrets.LOOTLOCKER_DOMAIN_KEY }}
72+
- name: Configure LootLocker to use Newtonsoft JSON
73+
run: |
74+
sed -i 's/NO_LOOTLOCKER_USE_NEWTONSOFTJSON/LOOTLOCKER_USE_NEWTONSOFTJSON/' tests~/ProjectSettings/ProjectSettings.asset
75+
- name: Run tests ${{ matrix.unityVersion }}-${{ matrix.testMode }} with Newtonsoft JSON
76+
uses: game-ci/unity-test-runner@v2
77+
id: tests2
78+
env:
79+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
80+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
81+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
82+
with:
83+
testMode: ${{ matrix.testMode }}
84+
checkName: ${{ matrix.unityVersion }}-${{ matrix.testMode }} Newtonsoft Test Results
85+
artifactsPath: ${{ matrix.unityVersion }}-${{ matrix.testMode }}-newtonsoft-artifacts
86+
projectPath: tests~/
87+
unityVersion: ${{ matrix.unityVersion }}
88+
githubToken: ${{ secrets.GITHUB_TOKEN }}
89+
customParameters: -apikey ${{ secrets.LOOTLOCKER_API_KEY }} -domainkey ${{ secrets.LOOTLOCKER_DOMAIN_KEY }}
7290

7391
# Commented out because as of right now it doesn't expand the test results, just repeat pass/fail
7492
#- uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)