Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: remove Playwright GitHub Action mentions (#7281)

Max Schmitt0d36cec60090
diff --git a/.github/workflows/infra.yml b/.github/workflows/infra.yml
index d9965b3176..82dfe1214d 100644
--- a/.github/workflows/infra.yml
+++ b/.github/workflows/infra.yml
@@ -19,9 +19,9 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- - uses: microsoft/playwright-github-action@v1
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: npm run lint
- name: Verify clean tree
run: |
@@ -39,8 +39,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- - uses: microsoft/playwright-github-action@v1
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: node utils/build/update_canary_version.js --today-date
- run: utils/build/build-playwright-driver.sh
diff --git a/.github/workflows/publish_canary_docker.yml b/.github/workflows/publish_canary_docker.yml
index 6c854d03c9..38343f092f 100644
--- a/.github/workflows/publish_canary_docker.yml
+++ b/.github/workflows/publish_canary_docker.yml
@@ -22,12 +22,12 @@ jobs:
login-server: playwright.azurecr.io
username: playwright
password: ${{ secrets.DOCKER_PASSWORD }}
- - uses: microsoft/playwright-github-action@v1
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: ./utils/docker/build.sh bionic playwright:localbuild-bionic
- run: ./utils/docker/build.sh focal playwright:localbuild-focal
- name: tag & publish
diff --git a/.github/workflows/publish_canary_driver.yml b/.github/workflows/publish_canary_driver.yml
index 934ca6e990..7730ebc3a1 100644
--- a/.github/workflows/publish_canary_driver.yml
+++ b/.github/workflows/publish_canary_driver.yml
@@ -17,9 +17,9 @@ jobs:
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- - uses: microsoft/playwright-github-action@v1
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: node utils/build/update_canary_version.js --commit-timestamp
- run: utils/build/build-playwright-driver.sh
- run: utils/build/upload-playwright-driver.sh
diff --git a/.github/workflows/publish_canary_npm.yml b/.github/workflows/publish_canary_npm.yml
index 9212c81c65..6c6c2c2a32 100644
--- a/.github/workflows/publish_canary_npm.yml
+++ b/.github/workflows/publish_canary_npm.yml
@@ -19,9 +19,9 @@ jobs:
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- - uses: microsoft/playwright-github-action@v1
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: node utils/build/update_canary_version.js --today-date
if: contains(github.ref, 'master') && github.event_name != 'workflow_dispatch'
- run: node utils/build/update_canary_version.js --commit-timestamp
diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml
index a6e5132511..e462cbf7bd 100644
--- a/.github/workflows/publish_release.yml
+++ b/.github/workflows/publish_release.yml
@@ -15,9 +15,9 @@ jobs:
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- - uses: microsoft/playwright-github-action@v1
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: utils/publish_all_packages.sh --release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -32,9 +32,9 @@ jobs:
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- - uses: microsoft/playwright-github-action@v1
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: utils/build/build-playwright-driver.sh
- run: utils/build/upload-playwright-driver.sh
env:
@@ -53,12 +53,12 @@ jobs:
login-server: playwright.azurecr.io
username: playwright
password: ${{ secrets.DOCKER_PASSWORD }}
- - uses: microsoft/playwright-github-action@v1
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
- run: npm run build
+ - run: node lib/cli/cli install-deps
- run: ./utils/docker/build.sh bionic playwright:localbuild-bionic
- run: ./utils/docker/build.sh focal playwright:localbuild-focal
- name: tag & publish
diff --git a/docs/src/ci.md b/docs/src/ci.md
index 94e0f4b847..95d038a109 100644
--- a/docs/src/ci.md
+++ b/docs/src/ci.md
@@ -13,7 +13,7 @@ configurations for common CI providers.
3 steps to get your tests running on CI:
1. **Ensure CI agent can run browsers**: Use [our Docker image](./docker.md)
- in Linux agents. Windows and macOS agents do not require any additional dependencies.
+ in Linux agents or install your dependencies using the [CLI](./cli.md#install-system-dependencies). Windows and macOS agents do not require any additional dependencies.
1. **Install Playwright**:
```bash js
npm ci
@@ -35,20 +35,24 @@ configurations for common CI providers.
## CI configurations
-### GitHub Actions
+The [Command Line Interface](./cli.md#install-system-dependencies) can be used to install all operating system dependencies on GitHub Actions.
-The [Playwright GitHub Action](https://github.com/microsoft/playwright-github-action) can be used to run Playwright tests on GitHub Actions.
+### GitHub Actions
```yml js
steps:
- - uses: microsoft/playwright-github-action@v1
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v2
+ with:
+ node-version: '14'
+ - name: Install operating system dependencies
+ run: npx playwright install-deps
- name: Run your tests
run: npm test
```
```yml python
steps:
- - uses: microsoft/playwright-github-action@v1
- name: Set up Python
uses: actions/setup-python@v2
with:
@@ -60,11 +64,13 @@ steps:
pip install -e .
- name: Ensure browsers are installed
run: python -m playwright install
+ - name: Install operating system dependencies
+ run: python -m playwright install-deps
- name: Run your tests
run: pytest
```
-We run [our tests](https://github.com/microsoft/playwright/blob/master/.github/workflows/tests.yml) on GitHub Actions, across a matrix of 3 platforms (Windows, Linux, macOS) and 3 browsers (Chromium, Firefox, WebKit).
+We run [our tests](https://github.com/microsoft/playwright/blob/master/.github/workflows/tests_secondary.yml) on GitHub Actions, across a matrix of 3 platforms (Windows, Linux, macOS) and 3 browsers (Chromium, Firefox, WebKit).
### Docker
diff --git a/docs/src/why-playwright.md b/docs/src/why-playwright.md
index f343ac2158..2130f32ba8 100644
--- a/docs/src/why-playwright.md
+++ b/docs/src/why-playwright.md
@@ -52,7 +52,7 @@ Playwright enables fast, reliable and capable automation across all modern brows
* **Language bindings**. Playwright is available for [Node.js](https://github.com/microsoft/playwright) [Python](https://github.com/microsoft/playwright-python), [.NET](https://github.com/microsoft/playwright-dotnet) and
[Java](https://github.com/microsoft/playwright-java). Learn more about [supported languages](./languages.md).
-* **Deploy tests to CI**. First-party [Docker image](./docker.md) and [GitHub Actions](https://github.com/microsoft/playwright-github-action) to deploy tests to [your preferred CI/CD provider](./ci.md).
+* **Deploy tests to CI**. First-party [Docker image](./docker.md) and [GitHub Actions](./ci.md#github-actions) support to deploy tests to [your preferred CI/CD provider](./ci.md).
## Limitations