forked from microsoft/playwright
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'microsoft:main' into main
- Loading branch information
Showing
358 changed files
with
11,549 additions
and
9,653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: "publish release - Docker" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
is_release: | ||
type: boolean | ||
description: "Is this a release image?" | ||
|
||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-docker-release: | ||
name: "publish to DockerHub" | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'microsoft/playwright' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: azure/docker-login@v1 | ||
with: | ||
login-server: playwright.azurecr.io | ||
username: playwright | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Set up Docker QEMU for arm64 docker builds | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: arm64 | ||
- run: npm i -g npm@8.3 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npx playwright install-deps | ||
- run: ./utils/docker/publish_docker.sh stable | ||
if: (github.event_name != 'workflow_dispatch' && !github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && github.event.inputs.is_release == 'true') | ||
- run: ./utils/docker/publish_docker.sh canary | ||
if: (github.event_name != 'workflow_dispatch' && github.event.release.prerelease) || (github.event_name == 'workflow_dispatch' && github.event.inputs.is_release != 'true') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "publish release - driver" | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-driver-release: | ||
name: "publish playwright driver to CDN" | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'microsoft/playwright' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm i -g npm@8.3 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npx playwright install-deps | ||
- run: utils/build/build-playwright-driver.sh | ||
- run: utils/build/upload-playwright-driver.sh | ||
env: | ||
AZ_UPLOAD_FOLDER: driver | ||
AZ_ACCOUNT_KEY: ${{ secrets.AZ_ACCOUNT_KEY }} | ||
AZ_ACCOUNT_NAME: ${{ secrets.AZ_ACCOUNT_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "publish release - NPM" | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-npm-release: | ||
name: "publish to NPM" | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'microsoft/playwright' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm i -g npm@8.3 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npx playwright install-deps | ||
- run: utils/publish_all_packages.sh --release-candidate | ||
if: "github.event.release.prerelease" | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- run: utils/publish_all_packages.sh --release | ||
if: "!github.event.release.prerelease" | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "publish release - TraceViewer" | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-trace-viewer: | ||
name: "publish Trace Viewer to trace.playwright.dev" | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'microsoft/playwright' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
- run: npm i -g npm@7 | ||
- name: Deploy Stable | ||
run: bash utils/build/deploy-trace-viewer.sh --stable | ||
env: | ||
GH_SERVICE_ACCOUNT_TOKEN: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.