diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 341a0b23..a32cb515 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -12,6 +12,16 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* + - name: Cache Docker images + uses: actions/cache@v2 + with: + path: /tmp/docker-images + key: ${{ runner.os }}-docker-images + - name: Load cached Docker images + run: | + if [ -d /tmp/docker-images ]; then + docker load < /tmp/docker-images/images.tar + fi - name: Start regtest env: COMPOSE_PROFILES: ci @@ -31,3 +41,7 @@ jobs: name: playwright-report path: playwright-report/ retention-days: 30 + - name: Save Docker images to cache + run: | + mkdir -p /tmp/docker-images + docker save $(docker images --format '{{.Repository}}:{{.Tag}}') > /tmp/docker-images/images.tar