Skip to content

Commit e420084

Browse files
authored
Merge branch 'main' into users/amitjoshi/remove-release-workflows
2 parents 4bec660 + bb14d34 commit e420084

8 files changed

Lines changed: 720 additions & 4 deletions

File tree

.github/workflows/PullRequest.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,52 @@ jobs:
7777
with:
7878
run: |
7979
npm run test-common-int
80+
81+
web-sanity:
82+
if: github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'release/stable'
83+
continue-on-error: true
84+
runs-on: ubuntu-latest
85+
timeout-minutes: 30
86+
87+
steps:
88+
- uses: actions/checkout@v4
89+
with:
90+
lfs: true
91+
92+
- name: Setup Node.js environment
93+
uses: actions/setup-node@v4
94+
with:
95+
node-version: 20
96+
97+
- name: Install dependencies
98+
run: npm ci
99+
100+
- name: Install Playwright browsers
101+
run: npx playwright install --with-deps chromium
102+
103+
- name: Build extension
104+
run: npm run dist
105+
106+
- name: Run E2E web sanity tests
107+
run: npm run test-e2e-web-sanity
108+
env:
109+
CI: true
110+
PP_TEST_VSCODE_URL: ${{ secrets.PP_TEST_VSCODE_URL }}
111+
PP_TEST_USERNAME: ${{ secrets.PP_TEST_USERNAME }}
112+
PP_TEST_PASSWORD: ${{ secrets.PP_TEST_PASSWORD }}
113+
114+
- name: Upload Playwright report
115+
uses: actions/upload-artifact@v4
116+
if: always()
117+
with:
118+
name: playwright-report-web-sanity
119+
path: playwright-report-web-sanity/
120+
retention-days: 7
121+
122+
- name: Upload test results
123+
uses: actions/upload-artifact@v4
124+
if: always()
125+
with:
126+
name: web-sanity-test-results
127+
path: test-results/web-sanity-results.xml
128+
retention-days: 7

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules/
22
out/
33
dist/
4+
.squad/
45
/coverage/
56
/package
67
/package/
@@ -35,4 +36,5 @@ l10n/package.nls.*.json
3536
src/e2e/.env
3637
src/e2e/.auth/
3738
playwright-report/
39+
playwright-report-web-sanity/
3840
test-results/

package-lock.json

Lines changed: 219 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)