|
5 | 5 | paths-ignore:
|
6 | 6 | - '**.md'
|
7 | 7 | - '**.txt'
|
8 |
| - workflow_dispatch: # e.g. to manually trigger on foreign PRs |
| 8 | + workflow_dispatch: # e.g. to manually trigger on foreign PRs |
9 | 9 |
|
10 | 10 | env:
|
11 | 11 | LOWEST_SUPPORTED_UNITY_VERSION: 2019
|
@@ -198,6 +198,13 @@ jobs:
|
198 | 198 | docker exec -e TEST_DSN=http://publickey@localhost:8000/12345 unity dotnet msbuild /t:UnityConfigureSentryOptions /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
|
199 | 199 | docker exec unity dotnet msbuild /t:UnityBuildPlayerWebGL /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
|
200 | 200 |
|
| 201 | + - name: Upload WebGL Build |
| 202 | + uses: actions/upload-artifact@v2 |
| 203 | + with: |
| 204 | + name: testapp-webgl-${{ matrix.unity-version }} |
| 205 | + path: samples/artifacts/builds/WebGL |
| 206 | + if-no-files-found: error |
| 207 | + |
201 | 208 | package-validation:
|
202 | 209 | needs: [build]
|
203 | 210 | name: UPM Package validation
|
@@ -454,3 +461,25 @@ jobs:
|
454 | 461 | $runtime = "iOS " + $runtime
|
455 | 462 | }
|
456 | 463 | ./Scripts/smoke-test-ios.ps1 Test "$runtime"
|
| 464 | +
|
| 465 | + webgl-smoke-test: |
| 466 | + needs: [build] |
| 467 | + name: Run WebGL Unity ${{ matrix.unity-version }} Smoke Test |
| 468 | + runs-on: ubuntu-latest |
| 469 | + strategy: |
| 470 | + fail-fast: false |
| 471 | + matrix: |
| 472 | + unity-version: ['2019', '2020', '2021'] |
| 473 | + steps: |
| 474 | + - name: Checkout |
| 475 | + |
| 476 | + |
| 477 | + - name: Download test app artifact |
| 478 | + uses: actions/download-artifact@v2 |
| 479 | + with: |
| 480 | + name: testapp-webgl-${{ matrix.unity-version }} |
| 481 | + path: samples/artifacts/builds/WebGL |
| 482 | + |
| 483 | + - run: pip3 install --user selenium |
| 484 | + |
| 485 | + - run: python3 scripts/smoke-test-webgl.py |
0 commit comments