ci: fix and speed up ci build (#1649)

Use new version of unity-runner which supports sonarqube
This commit is contained in:
Paul Pacheco 2020-04-02 21:28:31 -05:00 committed by GitHub
parent b063d93515
commit cc95af7a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 7 deletions

View File

@ -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

View File

@ -0,0 +1,10 @@
{
"m_SettingKeys": [
"VR Device Disabled",
"VR Device User Alert"
],
"m_SettingValues": [
"False",
"False"
]
}