Skip to content

Commit

Permalink
Update cleanup script and remove max parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Mar 14, 2024
1 parent 84c20c3 commit 0eea1b6
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/test_sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: self-hosted
strategy:
fail-fast: false
max-parallel: 1 # Only run one at a time, to prevent license contention
# max-parallel: 1 # Only run one at a time, to prevent license contention
matrix:
projectPath:
- YarnSpinner
Expand Down Expand Up @@ -77,13 +77,24 @@ jobs:
-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 -; chmod -R 777 /project/ /output/'
/bin/bash -c '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: ./output
name: Test results (edit + play, ${{ matrix.unityVersion }}-${{ matrix.targetPlatform }}
# path: ${{ steps.testRunner.outputs.artifactsPath }}
path: ./output

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

0 comments on commit 0eea1b6

Please sign in to comment.