-
Notifications
You must be signed in to change notification settings - Fork 56
68 lines (57 loc) · 1.61 KB
/
E2EWebSanity.yml
File metadata and controls
68 lines (57 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# E2E Web Sanity Tests for VS Code Web extension
# Runs against a real Power Platform test environment
name: E2E Web Sanity Tests
on:
schedule:
- cron: '0 2 * * *' # Daily at 2 AM UTC
workflow_dispatch:
inputs:
headed:
description: 'Run tests in headed mode (for debugging)'
required: false
default: false
type: boolean
permissions:
contents: read
jobs:
e2e:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Build extension
run: npm run dist
- name: Run E2E sanity tests
run: npm run test-e2e
env:
CI: true
PP_TEST_VSCODE_URL: ${{ secrets.PP_TEST_VSCODE_URL }}
PP_TEST_USERNAME: ${{ secrets.PP_TEST_USERNAME }}
PP_TEST_PASSWORD: ${{ secrets.PP_TEST_PASSWORD }}
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 14
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-test-results
path: test-results/
retention-days: 14