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:
Max Schmitt 2021-04-05 21:39:15 +02:00 committed by GitHub
parent e9f0f6c894
commit af48a8a1f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 42 additions and 44 deletions

View File

@ -13,10 +13,10 @@ on:
jobs:
doc-and-lint:
name: "docs & lint"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- uses: microsoft/playwright-github-action@v1
@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- uses: microsoft/playwright-github-action@v1

View File

@ -24,7 +24,7 @@ jobs:
username: playwright
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: microsoft/playwright-github-action@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10.15
- run: npm ci

View File

@ -13,7 +13,7 @@ jobs:
if: github.repository == 'microsoft/playwright'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.x
registry-url: 'https://registry.npmjs.org'

View File

@ -10,11 +10,11 @@ on:
jobs:
publish-canary-npm:
name: "publish to NPM"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
if: github.repository == 'microsoft/playwright'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
registry-url: 'https://registry.npmjs.org'

View File

@ -7,11 +7,11 @@ on:
jobs:
publish-npm-release:
name: "publish to NPM"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
if: github.repository == 'microsoft/playwright'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
registry-url: 'https://registry.npmjs.org'
@ -28,7 +28,7 @@ jobs:
if: github.repository == 'microsoft/playwright'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12.x
registry-url: 'https://registry.npmjs.org'
@ -55,7 +55,7 @@ jobs:
username: playwright
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: microsoft/playwright-github-action@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10.15
- run: npm ci

View File

@ -27,7 +27,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -59,7 +59,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -86,7 +86,7 @@ jobs:
shell: powershell
run: Install-WindowsFeature Server-Media-Foundation
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -104,7 +104,7 @@ jobs:
path: test-results
test-package-installations:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
@ -114,7 +114,7 @@ jobs:
- "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
- run: npm ci
@ -128,10 +128,10 @@ jobs:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -161,10 +161,10 @@ jobs:
fail-fast: false
matrix:
mode: [driver, service]
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -193,10 +193,10 @@ jobs:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -230,7 +230,7 @@ jobs:
PW_ANDROID_TESTS: 1
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm ci
@ -252,12 +252,10 @@ jobs:
chrome_stable_linux:
name: "Chrome Stable (Linux)"
strategy:
fail-fast: false
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- name: Install Chrome Stable
@ -292,7 +290,7 @@ jobs:
shell: powershell
run: Install-WindowsFeature Server-Media-Foundation
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -316,7 +314,7 @@ jobs:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci
@ -342,7 +340,7 @@ jobs:
shell: powershell
run: Install-WindowsFeature Server-Media-Foundation
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 10
- run: npm ci

View File

@ -12,7 +12,7 @@ on:
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- run: |
curl -X POST \

View File

@ -12,7 +12,7 @@ on:
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- run: |
curl -X POST \

View File

@ -12,7 +12,7 @@ on:
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- run: |
curl -X POST \

View File

@ -12,7 +12,7 @@ on:
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- run: |
curl -X POST \

View File

@ -12,7 +12,7 @@ on:
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- run: |
curl -X POST \

View File

@ -12,7 +12,7 @@ on:
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- run: |
curl -X POST \

View File

@ -9,7 +9,7 @@ on:
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- run: |
curl -X POST \

View File

@ -119,9 +119,9 @@ For Linux agents, you can use [our Docker container](./docker.md) with Azure Pip
```yml
pool:
vmImage: 'ubuntu-18.04'
vmImage: 'ubuntu-20.04'
container: mcr.microsoft.com/playwright:bionic
container: mcr.microsoft.com/playwright:focal
steps:
...
@ -189,7 +189,7 @@ Running Playwright on CircleCI requires the following steps:
```yml
docker:
- image: mcr.microsoft.com/playwright:bionic
- image: mcr.microsoft.com/playwright:focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
```
@ -211,7 +211,7 @@ to run tests on Jenkins.
```groovy
pipeline {
agent { docker { image 'mcr.microsoft.com/playwright:bionic' } }
agent { docker { image 'mcr.microsoft.com/playwright:focal' } }
stages {
stage('e2e-tests') {
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)).
```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.
@ -269,7 +269,7 @@ stages:
tests:
stage: test
image: mcr.microsoft.com/playwright:bionic
image: mcr.microsoft.com/playwright:focal
script:
...
```

View File

@ -16,7 +16,7 @@ This image is published on [Docker Hub](https://hub.docker.com/_/microsoft-playw
### Pull the image
```
$ docker pull mcr.microsoft.com/playwright:bionic
docker pull mcr.microsoft.com/playwright:focal
```
### Run the image