chore: remove Playwright GitHub Action mentions (#7281)
This commit is contained in:
parent
4c6fa42810
commit
0d36cec600
4
.github/workflows/infra.yml
vendored
4
.github/workflows/infra.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/publish_canary_docker.yml
vendored
2
.github/workflows/publish_canary_docker.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/publish_canary_driver.yml
vendored
2
.github/workflows/publish_canary_driver.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/publish_canary_npm.yml
vendored
2
.github/workflows/publish_canary_npm.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
6
.github/workflows/publish_release.yml
vendored
6
.github/workflows/publish_release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue