2022-09-07 21:09:22 +03:00
|
|
|
name: "WebView2 Tests"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release-*
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'browser_patches/**'
|
|
|
|
- 'docs/**'
|
2022-09-10 02:55:39 +03:00
|
|
|
types: [ labeled ]
|
2022-09-07 21:09:22 +03:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- release-*
|
|
|
|
|
|
|
|
env:
|
|
|
|
# Force terminal colors. @see https://www.npmjs.com/package/colors
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
FLAKINESS_CONNECTION_STRING: ${{ secrets.FLAKINESS_CONNECTION_STRING }}
|
2023-04-06 20:49:29 +03:00
|
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
2022-09-07 21:09:22 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test_webview2:
|
|
|
|
name: WebView2
|
|
|
|
runs-on: windows-2022
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
- uses: actions/setup-dotnet@v2
|
|
|
|
with:
|
|
|
|
dotnet-version: '6.0.x'
|
|
|
|
- run: npm i -g npm@8
|
|
|
|
- run: npm ci
|
|
|
|
env:
|
|
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
|
|
- run: npm run build
|
|
|
|
- run: dotnet build
|
|
|
|
working-directory: tests/webview2/webview2-app/
|
|
|
|
- run: npm run webview2test
|
|
|
|
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
|
|
|
|
if: always()
|
|
|
|
shell: bash
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: webview2-test-results
|
|
|
|
path: test-results
|