Skip to content

Commit

Permalink
feat: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
arein committed Dec 29, 2023
1 parent 4a68186 commit 90ca3f6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,22 @@ jobs:
node-version: 18.x
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Get installed Playwright version
id: playwright-version
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package-lock.json').dependencies['@playwright/test'].version)")" >> $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
run: npm ci
- name: build
run: npm run build
- name: Install Playwright Browsers
working-directory: ./apps/laboratory/
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npm run playwright:install
- name: Run Playwright tests
env:
Expand Down

0 comments on commit 90ca3f6

Please sign in to comment.