mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +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
|
||||
|
||||
- name: Request manual activation file
|
||||
uses: MirrorNG/unity-runner@master
|
||||
uses: MirrorNG/unity-runner@2.0.0
|
||||
id: getManualLicenseFile
|
||||
with:
|
||||
entrypoint: /request_activation.sh
|
||||
@ -51,24 +51,24 @@ jobs:
|
||||
target: Packages/manifest.json
|
||||
|
||||
- name: Activate license
|
||||
uses: MirrorNG/unity-runner@master
|
||||
uses: MirrorNG/unity-runner@2.0.0
|
||||
with:
|
||||
entrypoint: /activate.sh
|
||||
|
||||
- name: Generate Solution
|
||||
uses: MirrorNG/unity-runner@master
|
||||
uses: MirrorNG/unity-runner@2.0.0
|
||||
with:
|
||||
# Arguments to pass to unity
|
||||
args: -buildTarget StandaloneWindows64 -customBuildName MirrorNG -customBuildPath ./build/StandaloneWindows64 -projectPath . -executeMethod UnityEditor.SyncVS.SyncSolution -quit
|
||||
|
||||
# Configure test runner
|
||||
- name: Run editor Tests
|
||||
uses: MirrorNG/unity-runner@master
|
||||
uses: MirrorNG/unity-runner@2.0.0
|
||||
with:
|
||||
args: -runTests -testPlatform editmode -testResults Tests/editmode-results.xml -enableCodeCoverage -coverageResultsPath Tests
|
||||
|
||||
- name: Run play Tests
|
||||
uses: MirrorNG/unity-runner@master
|
||||
uses: MirrorNG/unity-runner@2.0.0
|
||||
with:
|
||||
args: -runTests -testPlatform playmode -testResults Tests/playmode-results.xml -enableCodeCoverage -coverageResultsPath Tests
|
||||
|
||||
@ -82,9 +82,9 @@ jobs:
|
||||
|
||||
- name: SonarQube analysis
|
||||
if: always()
|
||||
uses: MirrorNG/unity-sonarscanner@1.0.1
|
||||
uses: MirrorNG/unity-runner@2.0.0
|
||||
with:
|
||||
buildCommand: /opt/Unity/Editor/Data/NetCore/Sdk-2.2.107/dotnet build workspace.sln
|
||||
entrypoint: /sonar-scanner.sh
|
||||
projectKey: vis2k_Mirror
|
||||
projectName: Mirror
|
||||
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