Skip to content

Commit

Permalink
trying to cache playwright in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonf committed Aug 2, 2024
1 parent 1191054 commit a54d62b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/django-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ jobs:
# deploy vue app twice
tar xzf babex-vue.tar.gz -C lab/main/static/
tar xzf babex-vue.tar.gz -C parent/parent/static/
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- 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: Integration tests
run: |
cd ${{ matrix.app }}
Expand Down

0 comments on commit a54d62b

Please sign in to comment.