11# Secrets
22# ULF_REPO: Git repository url contains ulf files. https://mob-sakai:{{token}}@github.com/mob-sakai/ulfs.git
3- # WORKING_DIR: Unity project path (default: '.')
43name : unity-test
54
65on :
@@ -21,10 +20,14 @@ jobs:
2120 - uses : actions/checkout@v2
2221
2322 - run : |
24- npm i https://gist.github.com/mob-sakai/c90044338361af97a7e8c8a78425bdb3
23+ npm i --no-save https://gist.github.com/mob-sakai/c90044338361af97a7e8c8a78425bdb3
2524 npx semantic-release -e @mob-sakai/semantic-release-upm --dry-run --debug --branches develop
2625 env:
2726 GITHUB_TOKEN: ${{ github.token }}
27+
28+ - run : cat package.json
29+
30+ - run : ls
2831
2932 unity-test :
3033 strategy :
@@ -113,13 +116,19 @@ jobs:
113116 working-directory : Packages/dev
114117 run : git checkout ${{ github.head_ref }}
115118
116- # Build editor tests
119+ # Run playmode tests
117120 - name : " Build editor tests"
118121 if : always() && steps.activation.conclusion == 'success'
119122 run : |
120123 xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
121- /opt/Unity/Editor/Unity -batchmode -nographics -silent-crashes -logFile -projectPath . -runEditorTests \
122- || [ -e ./editor_unittest.xml ] && exit 0 || exit 1
124+ /opt/Unity/Editor/Unity -batchmode -nographics -silent-crashes -logFile -projectPath . -runTests -testPlatform playmode || exit 0
125+
126+ # Run editmode tests
127+ - name : " Build editor tests"
128+ if : always() && steps.activation.conclusion == 'success'
129+ run : |
130+ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
131+ /opt/Unity/Editor/Unity -batchmode -nographics -silent-crashes -logFile -projectPath . -runTests -testPlatform editmode || exit 0
123132
124133 # Push test results
125134 - name : Push test results
0 commit comments