Skip to content

Commit

Permalink
Allow defining chrome's version
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed Feb 23, 2024
1 parent cfd3ab4 commit bf66699
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ inputs:
description: "A Node.js version to be used"
default: "16.x"

# Chrome (only when e2e_js is set to "yes")
chrome_version:
required: false
description: "Chrome version to be used"
default: "latest"

runs:
using: "composite"

Expand Down Expand Up @@ -189,7 +195,7 @@ runs:
- uses: browser-actions/setup-chrome@latest
if: inputs.e2e == 'yes' || inputs.e2e_js == 'yes'
with:
chrome-version: latest
chrome-version: "${{ inputs.chrome_version }}"

- name: Run Chrome Headless
if: inputs.e2e == 'yes' || inputs.e2e_js == 'yes'
Expand Down

0 comments on commit bf66699

Please sign in to comment.