Skip to content

Commit c1191dc

Browse files
committed
Release v1.7.0 at e82d5ef
1 parent 9683066 commit c1191dc

File tree

3 files changed

+652
-278
lines changed

3 files changed

+652
-278
lines changed

README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
# setup-chrome
66

7-
This action sets by Google Chrome/Chromium for use in actions by:
7+
This action sets-up Google Chrome/Chromium for GitHub Actions. This action supports the following features:
88

9-
- [X] Install and setup latest Chromium
10-
- [X] Cross platform runner (macOS, Linux, Windows)
11-
- [X] Install Google Chrome by channel (stable, beta, dev, and canary)
12-
- [X] Install by version number (88.0.4324, or 88.0)
9+
- Install and setup the Google Chrome onto the runner.
10+
- Install a specific version of Google Chrome/Chromium by the version number, commit position, and release channel.
11+
- Cross-platform runner support (Windows, macOS, Linux) and self-hosted runner support.
12+
- Install the compatible versions of ChromeDriver with the browser.
1313

1414
## Usage
1515

@@ -31,6 +31,17 @@ steps:
3131
chrome-version: 120
3232
```
3333

34+
The action support installing the compatible ChromeDriver with the browser.
35+
You can use the `install-chromedriver` to install the ChromeDriver.
36+
37+
```yaml
38+
steps:
39+
- uses: browser-actions/setup-chrome@v1
40+
with:
41+
chrome-version: 120
42+
install-chromedriver: true
43+
```
44+
3445
If you use the self-hosted runner, your runner may not have the required dependencies on the system.
3546
You can install the dependencies by using the `install-dependencies` parameter.
3647
It installs the required dependencies for the Google Chrome/Chromium to run automatically.
@@ -77,11 +88,15 @@ steps:
7788
Default: `latest`
7889
- `install-dependencies`: *(Optional)* Install the required dependencies for the Google Chrome/Chromium to run.
7990
Default: `false`
91+
- `install-chromedriver`: *(Optional)* Install the compatible ChromeDriver with the browser.
92+
Default: `false`
8093

8194
### Outputs
8295

8396
- `chrome-path`: The installed Google Chrome/Chromium binary path.
8497
- `chrome-version`: The installed Google Chrome/Chromium version.
98+
- `chromedriver-path`: The installed ChromeDriver binary path.
99+
- `chromedriver-version`: The installed ChromeDriver version.
85100

86101
[snapshots]: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html
87102

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
description: |-
1212
Install dependent packages for Google Chrome/Chromium (Linux only).
1313
default: false
14+
install-chromedriver:
15+
description: |-
16+
Install the compatible version of ChromeDriver with the installed Google Chrome/Chromium.
17+
default: false
1418
no-sudo:
1519
description: |-
1620
Do not use sudo to install Google Chrome/Chromium (Linux only).
@@ -20,6 +24,10 @@ outputs:
2024
description: 'The installed Google Chrome/Chromium version. Useful when given a latest version.'
2125
chrome-path:
2226
description: 'The installed Google Chrome/Chromium path.'
27+
chromedriver-version:
28+
description: 'The installed ChromeDriver version. Useful when given a latest version.'
29+
chromedriver-path:
30+
description: 'The installed ChromeDriver path.'
2331
runs:
2432
using: 'node20'
2533
main: 'index.js'

0 commit comments

Comments
 (0)