Skip to content

Commit c89d5a5

Browse files
chore: migrate to monorepo (microsoft#9421)
1 parent 8d1537c commit c89d5a5

File tree

521 files changed

+4911
-8339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

521 files changed

+4911
-8339
lines changed

Diff for: .eslintignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
test/assets/modernizr.js
2-
lib/
2+
/packages/*/lib/
33
*.js
4-
src/generated/*
5-
src/third_party/
6-
/types/*
4+
/packages/playwright-core/src/generated/*
5+
/packages/playwright-core/src/third_party/
6+
/packages/playwright-core/types/*
77
/index.d.ts
88
utils/generate_types/overrides.d.ts
99
utils/generate_types/test/test.ts

Diff for: .github/workflows/infra.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919
- uses: actions/setup-node@v2
2020
with:
2121
node-version: 12
22+
- run: npm i -g npm@7
2223
- run: npm ci
2324
- run: npm run build
24-
- run: node lib/cli/cli install-deps
25+
- run: npx playwright install-deps
2526
- run: npm run lint
2627
- name: Verify clean tree
2728
run: |

Diff for: .github/workflows/package_create_playwright.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
with:
2222
node-version: 14
2323
cache: 'npm'
24+
- run: npm i -g npm@7
2425
- run: npm ci
26+
- run: npm i --no-save @playwright/test
2527
- run: npm run build
2628
- run: npm run test

Diff for: .github/workflows/publish_canary_driver.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ jobs:
1717
with:
1818
node-version: 12
1919
registry-url: 'https://registry.npmjs.org'
20+
- run: npm i -g npm@7
2021
- run: npm ci
2122
- run: npm run build
22-
- run: node lib/cli/cli install-deps
23+
- run: npx playwright install-deps
2324
- run: node utils/build/update_canary_version.js --commit-timestamp
2425
- run: utils/build/build-playwright-driver.sh
2526
- run: utils/build/upload-playwright-driver.sh

Diff for: .github/workflows/publish_canary_npm.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919
with:
2020
node-version: 12
2121
registry-url: 'https://registry.npmjs.org'
22+
- run: npm i -g npm@7
2223
- run: npm ci
2324
- run: npm run build
24-
- run: node lib/cli/cli install-deps
25+
- run: npx playwright install-deps
2526
- run: node utils/build/update_canary_version.js --today-date
2627
if: contains(github.ref, 'master') && github.event_name != 'workflow_dispatch'
2728
- run: node utils/build/update_canary_version.js --commit-timestamp

Diff for: .github/workflows/publish_release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
with:
1616
node-version: 12
1717
registry-url: 'https://registry.npmjs.org'
18+
- run: npm i -g npm@7
1819
- run: npm ci
1920
- run: npm run build
20-
- run: node lib/cli/cli install-deps
21+
- run: npx playwright install-deps
2122
- run: utils/publish_all_packages.sh --release
2223
env:
2324
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -32,9 +33,10 @@ jobs:
3233
with:
3334
node-version: 12
3435
registry-url: 'https://registry.npmjs.org'
36+
- run: npm i -g npm@7
3537
- run: npm ci
3638
- run: npm run build
37-
- run: node lib/cli/cli install-deps
39+
- run: npx playwright install-deps
3840
- run: utils/build/build-playwright-driver.sh
3941
- run: utils/build/upload-playwright-driver.sh
4042
env:

Diff for: .github/workflows/roll_browser_into_playwright.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
- uses: actions/setup-node@v2
1313
with:
1414
node-version: 16
15+
- run: npm i -g npm@7
1516
- run: npm ci
1617
- run: npm run build
1718
- name: Install dependencies
18-
run: node lib/cli/cli install-deps
19+
run: npx playwright install-deps
1920
- name: Roll to new revision
2021
run: |
2122
./utils/roll_browser.js ${{ github.event.client_payload.browser }} ${{ github.event.client_payload.revision }}

Diff for: .github/workflows/tests_docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- uses: actions/setup-node@v2
4040
with:
4141
node-version: 14
42+
- run: npm i -g npm@7
4243
- run: npm ci
4344
- run: npm run build
4445
- name: Build

Diff for: .github/workflows/tests_fyi.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
- uses: actions/setup-node@v2
2525
with:
2626
node-version: 12
27+
- run: npm i -g npm@7
2728
- run: npm ci
2829
env:
2930
DEBUG: pw:install
3031
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
3132
- run: npm run build
32-
- run: node lib/cli/cli install --with-deps ${{ matrix.browser }} chromium
33+
- run: npx playwright install --with-deps ${{ matrix.browser }} chromium
3334
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}
3435
env:
3536
PWTEST_VIDEO: 1
@@ -53,11 +54,12 @@ jobs:
5354
- uses: actions/setup-node@v2
5455
with:
5556
node-version: 14
57+
- run: npm i -g npm@7
5658
- run: npm ci
5759
env:
5860
DEBUG: pw:install
5961
- run: npm run build
60-
- run: node lib/cli/cli install-deps
62+
- run: npx playwright install-deps
6163
- name: Create Android Emulator
6264
run: utils/avd_recreate.sh
6365
- name: Start Android Emulator

Diff for: .github/workflows/tests_primary.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ jobs:
3232
- uses: actions/setup-node@v2
3333
with:
3434
node-version: 12
35+
- run: npm i -g npm@7
3536
- run: npm ci
3637
env:
3738
DEBUG: pw:install
3839
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
3940
- run: npm run build
40-
- run: node lib/cli/cli install --with-deps ${{ matrix.browser }} chromium
41+
- run: npx playwright install --with-deps ${{ matrix.browser }} chromium
4142
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}
4243
- run: node tests/config/checkCoverage.js ${{ matrix.browser }}
4344
- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json
@@ -60,11 +61,12 @@ jobs:
6061
- uses: actions/setup-node@v2
6162
with:
6263
node-version: 12
64+
- run: npm i -g npm@7
6365
- run: npm ci
6466
env:
6567
DEBUG: pw:install
6668
- run: npm run build
67-
- run: node lib/cli/cli install --with-deps
69+
- run: npx playwright install --with-deps
6870
- run: npm run ttest
6971
if: matrix.os != 'ubuntu-latest'
7072
- run: xvfb-run npm run ttest

0 commit comments

Comments
 (0)