cahce
This commit is contained in:
@@ -14,10 +14,23 @@ jobs:
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
node-version: lts/*
|
||||
- name: Get installed Playwright version
|
||||
id: playwright-version
|
||||
run: |
|
||||
export VER=$(bun --print "require('./bun.lock').workspaces[''].devDependencies['@playwright/test'].slice(1)")
|
||||
echo "PLAYWRIGHT_VERSION=$VER"" >> $GITHUB_ENV
|
||||
- name: Cache playwright binaries
|
||||
uses: actions/cache@v3
|
||||
id: playwright-cache
|
||||
with:
|
||||
path: |
|
||||
~/.cache/ms-playwright
|
||||
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
|
||||
- name: Install dependencies
|
||||
run: bun i --frozen-lockfile
|
||||
- name: Install Playwright Browsers
|
||||
run: bun x playwright install --with-deps
|
||||
if: steps.playwright-cache.outputs.cache-hit != 'true'
|
||||
- name: Tailscale
|
||||
uses: tailscale/github-action@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user