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+
3445If you use the self-hosted runner, your runner may not have the required dependencies on the system.
3546You can install the dependencies by using the `install-dependencies` parameter.
3647It 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
0 commit comments