Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Mar 14, 2024
1 parent 3df342c commit 19f334d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/test_sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
mkdir -p ${{ matrix.projectPath }}/Assets
mkdir -p ${{ matrix.projectPath }}/ProjectSettings
mkdir -p ${{ matrix.projectPath }}/Packages
mkdir -p ${{ matrix.projectPath }}/TestOutput
# Add the Unity Input System package, and configure the new project to use
# both the Input System and the legacy Input Manager.
Expand Down Expand Up @@ -67,4 +68,22 @@ jobs:
with:
fetch-depth: 0
path: ${{ matrix.projectPath }}/Packages/YarnSpinner


- name: Run tests
run: |
docker run \
--rm \
-v ${{ matrix.projectPath }}:/project \
-v ${{ matrix.projectPath }}/TestOutput:/output \
--hostname YS-Linux-Build \
yarnspinner/unity-${{ matrix.unityVersion }} \
unity-editor -runTests -batchmode -projectPath /project/ -testResults /output/TestResults-EditMode.xml -testPlatform EditMode -logFile -
- name: Upload test results
uses: actions/upload-artifact@v2
if: always()
with:
name: Test results (edit + play, ${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}
# path: ${{ steps.testRunner.outputs.artifactsPath }}
path: ${{ matrix.projectPath }}/TestOutput

0 comments on commit 19f334d

Please sign in to comment.