feat: new terrain #17965
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unity Test | |
| on: | |
| pull_request: | |
| paths: | |
| - 'Explorer/**' | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| - labeled | |
| merge_group: {} | |
| push: { branches: [dev] } | |
| env: | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| UNITY_LICENSE: ${{ secrets.UNITY_PERSONAL_LICENSE }} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event.pull_request.draft == false) || (github.event.label.name == 'force-build') || (github.event.label.name == 'clean-build') | |
| name: Test | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Create LFS file list | |
| run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | |
| - name: Restore LFS cache | |
| uses: actions/cache@v4 | |
| id: lfs-cache | |
| with: | |
| path: .git/lfs | |
| key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} | |
| - name: Git LFS Pull | |
| run: | | |
| git lfs pull | |
| git add . | |
| git reset --hard | |
| - name: Restore Library cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: Explorer/Library | |
| key: Library-Explorer-Windows | |
| - name: Clone Packages To Use Locally | |
| env: | |
| REPOS_READ_ONLY_TOKEN: ${{ secrets.REPOS_READ_ONLY_TOKEN }} | |
| run: | | |
| git clone https://x-access-token:$env:REPOS_READ_ONLY_TOKEN@github.com/decentraland/unity-explorer-packages.git | |
| $jsonFilePath = "Explorer/Packages/manifest.json" | |
| (Get-Content $jsonFilePath) ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/FileBrowserPro', 'file:../../unity-explorer-packages/FileBrowserPro' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/StylizedGrassShader', 'file:../../unity-explorer-packages/StylizedGrassShader' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/RenderGraphs/RenderFeatures', 'file:../../unity-explorer-packages/RenderGraphs/RenderFeatures' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/AVProVideo', 'file:../../unity-explorer-packages/AVProVideo' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/SuperScrollView', 'file:../../unity-explorer-packages/SuperScrollView' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/SoftMask', 'file:../../unity-explorer-packages/SoftMask' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/GPUInstancerPro/com.gurbu.gpui-pro', 'file:../../unity-explorer-packages/GPUInstancerPro/com.gurbu.gpui-pro' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/GPUInstancerPro/com.gurbu.gpui-pro.terrain', 'file:../../unity-explorer-packages/GPUInstancerPro/com.gurbu.gpui-pro.terrain' ` | |
| -replace 'git@github.com:decentraland/unity-explorer-packages.git\?path=/GPUInstancerPro/com.dcl.gpui-assets', 'file:../../unity-explorer-packages/GPUInstancerPro/com.dcl.gpui-assets' | | |
| Set-Content $jsonFilePath | |
| Get-ChildItem | |
| Get-Content $jsonFilePath | |
| # Configure test runner | |
| - uses: game-ci/unity-test-runner@v4.3.1 | |
| id: testRunner | |
| timeout-minutes: 60 | |
| continue-on-error: true | |
| with: | |
| projectPath: Explorer | |
| testMode: all | |
| - name: Convert NUnit to JUnit | |
| if: always() | |
| run: | | |
| New-Item -ItemType Directory -Force -Path "${{ steps.testRunner.outputs.artifactsPath }}-junit" | |
| choco install xsltproc | |
| xsltproc ` | |
| --output "${{ steps.testRunner.outputs.artifactsPath }}-junit/playmode-results-junit.xml" ` | |
| .github/workflows/nunit-to-junit.xsl ` | |
| "${{ steps.testRunner.outputs.artifactsPath }}/playmode-results.xml" | |
| xsltproc ` | |
| --output "${{ steps.testRunner.outputs.artifactsPath }}-junit/editmode-results-junit.xml" ` | |
| .github/workflows/nunit-to-junit.xsl ` | |
| "${{ steps.testRunner.outputs.artifactsPath }}/editmode-results.xml" | |
| - name: Report test results | |
| uses: decentraland/test-reporting@v0.3 | |
| if: always() | |
| with: | |
| name: Report test results | |
| path: ${{ steps.testRunner.outputs.artifactsPath }}-junit/*.xml | |
| reporter: jest-junit | |
| # Upload artifact | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Test results (play mode & edit mode) | |
| path: ${{ steps.testRunner.outputs.artifactsPath }} | |
| if-no-files-found: error |