This action sets by Google Chrome/Chromium for use in actions by:
- Install and setup latest Chromium
- Cross platform runner (macOS, Linux, Windows)
- Install Google Chrome by channel (stable, beta, dev, and canary)
- Install by version number (88.0.4324, or 88.0)
Here is a basic usage. The action installs the latest build by default.
steps:
- uses: browser-actions/setup-chrome@v1
- run: chrome --versionTo install a specific channel, use chrome-version input.
steps:
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 120The action supports the following version formats:
- The latest snapshot
latest(default). - Commit positions like
848897. You can find commit positions from here. - Google Chrome release channels:
stable,beta,devandcanary - Specific versions:
119,120.0.6099,121.0.6100.0. The version are resolved by Chrome for Testing.
The installed binary name is not always chrome or chromium.
It depends on your installation spec and OS.
To get the installed binary path, use chrome-path output of the action:
steps:
- uses: browser-actions/setup-chrome@v1
id: setup-chrome
- run: |
${{ steps.setup-chrome.outputs.chrome-path }} --versionchrome-version: (Optional) The Google Chrome/Chromium version to be installed. Default:latest
chrome-path: The installed Google Chrome/Chromium binary path.chrome-version: The installed Google Chrome/Chromium version.