Skip to content

Commit

Permalink
Merge branch 'microsoft:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ARUMAIS authored Feb 9, 2022
2 parents 0e90bda + 19368e9 commit 75b1b36
Show file tree
Hide file tree
Showing 358 changed files with 11,549 additions and 9,653 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
- run: npm run build
- run: npx playwright install-deps
- run: npx playwright install
- run: npm run lint
- name: Verify clean tree
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
- run: npm run build
- run: npx playwright install-deps
Expand Down
90 changes: 0 additions & 90 deletions .github/workflows/publish_release.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/publish_release_docker.yml
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')
27 changes: 27 additions & 0 deletions .github/workflows/publish_release_driver.yml
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 }}
29 changes: 29 additions & 0 deletions .github/workflows/publish_release_npm.yml
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 }}
21 changes: 21 additions & 0 deletions .github/workflows/publish_release_traceviewer.yml
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/roll_browser_into_playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
- run: npm run build
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests_fyi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
env:
DEBUG: pw:install
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
env:
DEBUG: pw:install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests_primary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
env:
DEBUG: pw:install
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node-version}}
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
env:
DEBUG: pw:install
Expand All @@ -84,7 +84,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm i -g npm@8
- run: npm i -g npm@8.3
- run: npm ci
env:
DEBUG: pw:install
Expand Down
Loading

0 comments on commit 75b1b36

Please sign in to comment.