Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Mar 15, 2024
1 parent fc1104e commit eaccba2
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/test_sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- YarnSpinner
unityVersion:
- 2021.3.35f1
- 2022.3.21f1
- 2023.2.12f1
# - 2022.3.21f1
# - 2023.2.12f1
targetPlatform:
# - StandaloneOSX # Build a macOS standalone (Intel 64-bit).
# - StandaloneWindows64 # Build a Windows 64-bit standalone.
Expand Down Expand Up @@ -71,13 +71,13 @@ jobs:

- name: Run tests
run: |
docker run \
--rm \
-v ./${{ matrix.projectPath }}:/project \
-v ./output:/output \
--hostname YS-Linux-Build \
yarnspinner/unity-${{ matrix.unityVersion }} \
/bin/bash -c 'unity-editor -runTests -batchmode -projectPath /project/ -testResults /output/TestResults-EditMode.xml -testPlatform EditMode -logFile -'
docker run \
--rm \
-v ./${{ matrix.projectPath }}:/project \
-v ./output:/output \
-e TEST_MODE=EditMode \
--hostname YS-Linux-Build \
yarnspinner/unity-${{ matrix.unityVersion }}
- name: Upload test results
uses: actions/upload-artifact@v2
Expand All @@ -87,14 +87,5 @@ jobs:
# path: ${{ steps.testRunner.outputs.artifactsPath }}
path: ./output

- name: Cleanup
if: always()
run: |
docker run \
--rm \
-v ./${{ matrix.projectPath }}:/project
-v ./output:/output
yarnspinner/unity-${{ matrix.unityVersion }} \
/bin/bash -c 'rm -rf /project/* /output/*'


0 comments on commit eaccba2

Please sign in to comment.