Skip to content

Commit

Permalink
chore: deprecate GitHub Action (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Nov 15, 2024
1 parent 8bc4ece commit 91d778e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ We highly discourage the use of the GitHub Action. See next section for using th

## ✅ Use the Playwright CLI

Starting with Playwright v1.8.0 it [includes a CLI](https://playwright.dev/docs/next/cli#install-system-dependencies) that installs all required browser dependencies.
Starting with Playwright v1.8.0 it [includes a CLI](https://playwright.dev/docs/cli#install-system-dependencies) that installs all required browser dependencies.

### To install dependencies with a CLI:

```sh
npx playwright install-deps # install dependencies for all browsers
npx playwright install-deps chromium # install dependencies for Chromium only
npx playwright install --with-deps # install browsers + dependencies for all browsers
npx playwright install chromium --with-deps # install browsers + dependencies for Chromium only
```

### Playwright CLI with GitHub Actions CI
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4504,6 +4504,7 @@ const DEPENDENCIES = {
};

async function run() {
core.warning('This GitHub Action is deprecated. We recommend installing dependencies via \'npx playwright install --with-deps\' instead. See https://playwright.dev/docs/cli#install-system-dependencies for more information.');
try {
if (os.platform() === 'linux') {
await exec('sudo', ['apt-get', 'update']);
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ const DEPENDENCIES = {
};

async function run() {
core.warning('This GitHub Action is deprecated. We recommend installing dependencies via \'npx playwright install --with-deps\' instead. See https://playwright.dev/docs/cli#install-system-dependencies for more information.');
try {
if (os.platform() === 'linux') {
await exec('sudo', ['apt-get', 'update']);
Expand Down

0 comments on commit 91d778e

Please sign in to comment.