Skip to content

Commit

Permalink
Install playwright in Github Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
khustochka committed Dec 25, 2024
1 parent 0b3dbba commit 6b91a81
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ runs:
run: |
bin/yarn install --frozen-lockfile
shell: bash
- name: Cache Playwright Chromium browser
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install Playwright Chromium browser (with deps)
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: yarn run playwright install --with-deps chromium
- name: Install Playwright Chromium browser deps
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: yarn run playwright install-deps chromium
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
Expand Down

0 comments on commit 6b91a81

Please sign in to comment.