File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 44
44
" 2020.1.4f1" ,
45
45
" 2020.1.5f1" ,
46
46
]
47
+ env :
48
+ RUN_UNITY : " xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' /opt/Unity/Editor/Unity -batchmode -nographics -silent-crashes -logFile -projectPath ."
47
49
48
50
runs-on : ubuntu-latest
49
51
container :
@@ -118,26 +120,22 @@ jobs:
118
120
119
121
# Run playmode tests
120
122
- name : " Run playmode tests"
121
- if : always() && steps.activation.conclusion == 'success'
122
- run : |
123
- xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
124
- /opt/Unity/Editor/Unity -batchmode -nographics -silent-crashes -logFile -projectPath . -runTests -testPlatform playmode || exit 0
125
-
126
- # Run editmode tests
127
- - name : " Run editmode tests"
128
123
if : always() && steps.activation.conclusion == 'success'
129
124
run : |
130
125
# Install codecoverage
131
126
if [ -z "`echo ${{ matrix.unity }} | grep 2018.`" ]; then
132
127
npm i -g openupm-cli
133
128
openupm add com.unity.testtools.codecoverage
134
-
135
- xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
136
- /opt/Unity/Editor/Unity -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod Coffee.CSharpCompilerSettings.Menus.SetDevelopMode
137
129
fi
138
130
139
- xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
140
- /opt/Unity/Editor/Unity -batchmode -nographics -silent-crashes -logFile -projectPath . -runEditorTests -enableCodeCoverage -coverageOptions 'assemblyFilters:+CSharpCompilerSettings' || exit 0
131
+ $RUN_UNITY -runTests -testPlatform playmode -enableCodeCoverage || exit 0
132
+
133
+ # Run editmode tests
134
+ - name : " Run editmode tests"
135
+ if : always() && steps.activation.conclusion == 'success'
136
+ run : |
137
+ $RUN_UNITY -executeMethod Coffee.CSharpCompilerSettings.Menus.SetDevelopMode || exit 0
138
+ $RUN_UNITY -runTests -testPlatform editmode -enableCodeCoverage || exit 0
141
139
142
140
# Push test results
143
141
- name : Push test results
You can’t perform that action at this time.
0 commit comments