devops: use ubuntu focal on bots and docs (#5951)
- drive-by: updated NPM Action - replaced ubuntu-latest by ubuntu-20 so its pinned Extracted from #5746
This commit is contained in:
parent
e9f0f6c894
commit
af48a8a1f1
6
.github/workflows/infra.yml
vendored
6
.github/workflows/infra.yml
vendored
|
|
@ -13,10 +13,10 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
doc-and-lint:
|
doc-and-lint:
|
||||||
name: "docs & lint"
|
name: "docs & lint"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
|
|
|
||||||
2
.github/workflows/publish_canary_docker.yml
vendored
2
.github/workflows/publish_canary_docker.yml
vendored
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
username: playwright
|
username: playwright
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
|
||||||
2
.github/workflows/publish_canary_driver.yml
vendored
2
.github/workflows/publish_canary_driver.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
|
||||||
4
.github/workflows/publish_canary_npm.yml
vendored
4
.github/workflows/publish_canary_npm.yml
vendored
|
|
@ -10,11 +10,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
publish-canary-npm:
|
publish-canary-npm:
|
||||||
name: "publish to NPM"
|
name: "publish to NPM"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
|
||||||
8
.github/workflows/publish_release.yml
vendored
8
.github/workflows/publish_release.yml
vendored
|
|
@ -7,11 +7,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
publish-npm-release:
|
publish-npm-release:
|
||||||
name: "publish to NPM"
|
name: "publish to NPM"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
if: github.repository == 'microsoft/playwright'
|
if: github.repository == 'microsoft/playwright'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
@ -55,7 +55,7 @@ jobs:
|
||||||
username: playwright
|
username: playwright
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- uses: microsoft/playwright-github-action@v1
|
- uses: microsoft/playwright-github-action@v1
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10.15
|
node-version: 10.15
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
|
||||||
36
.github/workflows/tests.yml
vendored
36
.github/workflows/tests.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -59,7 +59,7 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: Install-WindowsFeature Server-Media-Foundation
|
run: Install-WindowsFeature Server-Media-Foundation
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -104,7 +104,7 @@ jobs:
|
||||||
path: test-results
|
path: test-results
|
||||||
|
|
||||||
test-package-installations:
|
test-package-installations:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -114,7 +114,7 @@ jobs:
|
||||||
- "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)
|
- "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node_version }}
|
node-version: ${{ matrix.node_version }}
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -128,10 +128,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
browser: [chromium, firefox, webkit]
|
browser: [chromium, firefox, webkit]
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -161,10 +161,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
mode: [driver, service]
|
mode: [driver, service]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -193,10 +193,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
browser: [chromium, firefox, webkit]
|
browser: [chromium, firefox, webkit]
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -230,7 +230,7 @@ jobs:
|
||||||
PW_ANDROID_TESTS: 1
|
PW_ANDROID_TESTS: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 14
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -252,12 +252,10 @@ jobs:
|
||||||
|
|
||||||
chrome_stable_linux:
|
chrome_stable_linux:
|
||||||
name: "Chrome Stable (Linux)"
|
name: "Chrome Stable (Linux)"
|
||||||
strategy:
|
runs-on: ubuntu-20.04
|
||||||
fail-fast: false
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- name: Install Chrome Stable
|
- name: Install Chrome Stable
|
||||||
|
|
@ -292,7 +290,7 @@ jobs:
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: Install-WindowsFeature Server-Media-Foundation
|
run: Install-WindowsFeature Server-Media-Foundation
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -316,7 +314,7 @@ jobs:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
@ -342,7 +340,7 @@ jobs:
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: Install-WindowsFeature Server-Media-Foundation
|
run: Install-WindowsFeature Server-Media-Foundation
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 10
|
node-version: 10
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
|
||||||
2
.github/workflows/trigger_build_chromium.yml
vendored
2
.github/workflows/trigger_build_chromium.yml
vendored
|
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
|
|
||||||
2
.github/workflows/trigger_build_ffmpeg.yml
vendored
2
.github/workflows/trigger_build_ffmpeg.yml
vendored
|
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
|
|
||||||
2
.github/workflows/trigger_build_firefox.yml
vendored
2
.github/workflows/trigger_build_firefox.yml
vendored
|
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
|
|
||||||
2
.github/workflows/trigger_build_webkit.yml
vendored
2
.github/workflows/trigger_build_webkit.yml
vendored
|
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
|
|
||||||
2
.github/workflows/trigger_build_winldd.yml
vendored
2
.github/workflows/trigger_build_winldd.yml
vendored
|
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
|
|
||||||
2
.github/workflows/trigger_tests.yml
vendored
2
.github/workflows/trigger_tests.yml
vendored
|
|
@ -9,7 +9,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
name: "trigger"
|
name: "trigger"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
|
|
||||||
|
|
@ -119,9 +119,9 @@ For Linux agents, you can use [our Docker container](./docker.md) with Azure Pip
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-18.04'
|
vmImage: 'ubuntu-20.04'
|
||||||
|
|
||||||
container: mcr.microsoft.com/playwright:bionic
|
container: mcr.microsoft.com/playwright:focal
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
...
|
...
|
||||||
|
|
@ -189,7 +189,7 @@ Running Playwright on CircleCI requires the following steps:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
docker:
|
docker:
|
||||||
- image: mcr.microsoft.com/playwright:bionic
|
- image: mcr.microsoft.com/playwright:focal
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: development # Needed if playwright is in `devDependencies`
|
NODE_ENV: development # Needed if playwright is in `devDependencies`
|
||||||
```
|
```
|
||||||
|
|
@ -211,7 +211,7 @@ to run tests on Jenkins.
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { docker { image 'mcr.microsoft.com/playwright:bionic' } }
|
agent { docker { image 'mcr.microsoft.com/playwright:focal' } }
|
||||||
stages {
|
stages {
|
||||||
stage('e2e-tests') {
|
stage('e2e-tests') {
|
||||||
steps {
|
steps {
|
||||||
|
|
@ -228,7 +228,7 @@ pipeline {
|
||||||
Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.md)).
|
Bitbucket Pipelines can use public [Docker images as build environments](https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html). To run Playwright tests on Bitbucket, use our public Docker image ([see Dockerfile](./docker.md)).
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
image: mcr.microsoft.com/playwright:bionic
|
image: mcr.microsoft.com/playwright:focal
|
||||||
```
|
```
|
||||||
|
|
||||||
While the Docker image supports sandboxing for Chromium, it does not work in the Bitbucket Pipelines environment. To launch Chromium on Bitbucket Pipelines, use the `chromiumSandbox: false` launch argument.
|
While the Docker image supports sandboxing for Chromium, it does not work in the Bitbucket Pipelines environment. To launch Chromium on Bitbucket Pipelines, use the `chromiumSandbox: false` launch argument.
|
||||||
|
|
@ -269,7 +269,7 @@ stages:
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: mcr.microsoft.com/playwright:bionic
|
image: mcr.microsoft.com/playwright:focal
|
||||||
script:
|
script:
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ This image is published on [Docker Hub](https://hub.docker.com/_/microsoft-playw
|
||||||
### Pull the image
|
### Pull the image
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker pull mcr.microsoft.com/playwright:bionic
|
docker pull mcr.microsoft.com/playwright:focal
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run the image
|
### Run the image
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue