Skip to content

Commit 24c5c94

Browse files
committed
ci: add WebGL smoke test to CI
1 parent 662423d commit 24c5c94

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
paths-ignore:
66
- '**.md'
77
- '**.txt'
8-
workflow_dispatch: # e.g. to manually trigger on foreign PRs
8+
workflow_dispatch: # e.g. to manually trigger on foreign PRs
99

1010
env:
1111
LOWEST_SUPPORTED_UNITY_VERSION: 2019
@@ -198,6 +198,13 @@ jobs:
198198
docker exec -e TEST_DSN=http://publickey@localhost:8000/12345 unity dotnet msbuild /t:UnityConfigureSentryOptions /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
199199
docker exec unity dotnet msbuild /t:UnityBuildPlayerWebGL /p:Configuration=Release /p:OutDir=other src/Sentry.Unity
200200
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+
201208
package-validation:
202209
needs: [build]
203210
name: UPM Package validation
@@ -454,3 +461,25 @@ jobs:
454461
$runtime = "iOS " + $runtime
455462
}
456463
./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+
uses: actions/[email protected]
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

Comments
 (0)