This action sets by Google Chrome/Chromium for use in actions by:
See action.yml
Basic usage:
steps:
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
Install Google Chrome Beta
steps:
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
with:
chrome-version: beta
Note that the installed binary depends on your installation spec.
The installed binary name depends on the version you specify and your platform. The summarized binary names are the following:
OS \ installed version | latest (default) |
commit position (e.g. 848897 ) |
channel name (e.g. dev ) |
---|---|---|---|
Windows | chrome | chrome | chrome |
macOS | chromium | chromium | chrome |
Linux | chrome | chrome | chrome |
Be sure to pass a full-path to chrome
or chromium
to your test system if
the system expects that chromium
exists in PATH such as karma-chromium-runner:
CHROMIUM_BIN=$(which chrome) npm run test
chrome-version
: (Optional) The Google Chrome/Chromium version to be installed. Available value is one of the following:
848897
. You can find commit positions from here.latest
stable
, beta
, dev
and canary
Default: latest