Skip to content

Commit

Permalink
Configure tests to run both zerodep and newtonsoft json
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Bylund authored and kirre-bylund committed Dec 15, 2023
1 parent 7ea7906 commit c0b93a2
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
key: Library-${{ matrix.unityVersion }}-${{ matrix.testMode }}
restore-keys: Library-

- name: Run tests ${{ matrix.unityVersion }}-${{ matrix.testMode }}
- name: Run tests ${{ matrix.unityVersion }}-${{ matrix.testMode }} with ZeroDepJSON
uses: game-ci/unity-test-runner@v2
id: tests
env:
Expand All @@ -69,6 +69,24 @@ jobs:
unityVersion: ${{ matrix.unityVersion }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
customParameters: -apikey ${{ secrets.LOOTLOCKER_API_KEY }} -domainkey ${{ secrets.LOOTLOCKER_DOMAIN_KEY }}
- name: Configure LootLocker to use Newtonsoft JSON
run: |
sed -i 's/NO_LOOTLOCKER_USE_NEWTONSOFTJSON/LOOTLOCKER_USE_NEWTONSOFTJSON/' tests~/ProjectSettings/ProjectSettings.asset
- name: Run tests ${{ matrix.unityVersion }}-${{ matrix.testMode }} with Newtonsoft JSON
uses: game-ci/unity-test-runner@v2
id: tests2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
testMode: ${{ matrix.testMode }}
checkName: ${{ matrix.unityVersion }}-${{ matrix.testMode }} Newtonsoft Test Results
artifactsPath: ${{ matrix.unityVersion }}-${{ matrix.testMode }}-newtonsoft-artifacts
projectPath: tests~/
unityVersion: ${{ matrix.unityVersion }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
customParameters: -apikey ${{ secrets.LOOTLOCKER_API_KEY }} -domainkey ${{ secrets.LOOTLOCKER_DOMAIN_KEY }}

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

0 comments on commit c0b93a2

Please sign in to comment.