mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
ci: fix and speed up ci build (#1649)
Use new version of unity-runner which supports sonarqube
This commit is contained in:
parent
b063d93515
commit
cc95af7a65
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Request manual activation file
|
- name: Request manual activation file
|
||||||
uses: MirrorNG/unity-runner@master
|
uses: MirrorNG/unity-runner@2.0.0
|
||||||
id: getManualLicenseFile
|
id: getManualLicenseFile
|
||||||
with:
|
with:
|
||||||
entrypoint: /request_activation.sh
|
entrypoint: /request_activation.sh
|
||||||
@ -51,24 +51,24 @@ jobs:
|
|||||||
target: Packages/manifest.json
|
target: Packages/manifest.json
|
||||||
|
|
||||||
- name: Activate license
|
- name: Activate license
|
||||||
uses: MirrorNG/unity-runner@master
|
uses: MirrorNG/unity-runner@2.0.0
|
||||||
with:
|
with:
|
||||||
entrypoint: /activate.sh
|
entrypoint: /activate.sh
|
||||||
|
|
||||||
- name: Generate Solution
|
- name: Generate Solution
|
||||||
uses: MirrorNG/unity-runner@master
|
uses: MirrorNG/unity-runner@2.0.0
|
||||||
with:
|
with:
|
||||||
# Arguments to pass to unity
|
# Arguments to pass to unity
|
||||||
args: -buildTarget StandaloneWindows64 -customBuildName MirrorNG -customBuildPath ./build/StandaloneWindows64 -projectPath . -executeMethod UnityEditor.SyncVS.SyncSolution -quit
|
args: -buildTarget StandaloneWindows64 -customBuildName MirrorNG -customBuildPath ./build/StandaloneWindows64 -projectPath . -executeMethod UnityEditor.SyncVS.SyncSolution -quit
|
||||||
|
|
||||||
# Configure test runner
|
# Configure test runner
|
||||||
- name: Run editor Tests
|
- name: Run editor Tests
|
||||||
uses: MirrorNG/unity-runner@master
|
uses: MirrorNG/unity-runner@2.0.0
|
||||||
with:
|
with:
|
||||||
args: -runTests -testPlatform editmode -testResults Tests/editmode-results.xml -enableCodeCoverage -coverageResultsPath Tests
|
args: -runTests -testPlatform editmode -testResults Tests/editmode-results.xml -enableCodeCoverage -coverageResultsPath Tests
|
||||||
|
|
||||||
- name: Run play Tests
|
- name: Run play Tests
|
||||||
uses: MirrorNG/unity-runner@master
|
uses: MirrorNG/unity-runner@2.0.0
|
||||||
with:
|
with:
|
||||||
args: -runTests -testPlatform playmode -testResults Tests/playmode-results.xml -enableCodeCoverage -coverageResultsPath Tests
|
args: -runTests -testPlatform playmode -testResults Tests/playmode-results.xml -enableCodeCoverage -coverageResultsPath Tests
|
||||||
|
|
||||||
@ -82,9 +82,9 @@ jobs:
|
|||||||
|
|
||||||
- name: SonarQube analysis
|
- name: SonarQube analysis
|
||||||
if: always()
|
if: always()
|
||||||
uses: MirrorNG/unity-sonarscanner@1.0.1
|
uses: MirrorNG/unity-runner@2.0.0
|
||||||
with:
|
with:
|
||||||
buildCommand: /opt/Unity/Editor/Data/NetCore/Sdk-2.2.107/dotnet build workspace.sln
|
entrypoint: /sonar-scanner.sh
|
||||||
projectKey: vis2k_Mirror
|
projectKey: vis2k_Mirror
|
||||||
projectName: Mirror
|
projectName: Mirror
|
||||||
sonarOrganisation: vis2k
|
sonarOrganisation: vis2k
|
||||||
|
10
ProjectSettings/XRSettings.asset
Normal file
10
ProjectSettings/XRSettings.asset
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"m_SettingKeys": [
|
||||||
|
"VR Device Disabled",
|
||||||
|
"VR Device User Alert"
|
||||||
|
],
|
||||||
|
"m_SettingValues": [
|
||||||
|
"False",
|
||||||
|
"False"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user