From a54d62ba0ff81bd9d81d4bb1dcc7a85469bb1365 Mon Sep 17 00:00:00 2001 From: bbonf Date: Fri, 2 Aug 2024 11:58:36 +0200 Subject: [PATCH] trying to cache playwright in github action --- .github/workflows/django-tests.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml index 6c717697..be289fed 100644 --- a/.github/workflows/django-tests.yml +++ b/.github/workflows/django-tests.yml @@ -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 }}