diff --git a/.github/workflows/sanity-72.yml b/.github/workflows/sanity-72.yml index 837ec5912ba93..636e3739f741e 100644 --- a/.github/workflows/sanity-72.yml +++ b/.github/workflows/sanity-72.yml @@ -71,6 +71,12 @@ jobs: sudo chown www-data:www-data -R /var/lib/php/sessions && \ sudo service apache2 restart + - name: Cache Playwright browsers + uses: actions/cache@v2 + with: + path: ~/.cache/ms-playwright/ + key: ${{ runner.os }}-browsers + - name: Run tests run: | npm install && npm run sanity-tests-fast-fail diff --git a/.github/workflows/sanity-73.yml b/.github/workflows/sanity-73.yml index 9d28991c96e02..96709aaef80ee 100644 --- a/.github/workflows/sanity-73.yml +++ b/.github/workflows/sanity-73.yml @@ -71,6 +71,12 @@ jobs: sudo chown www-data:www-data -R /var/lib/php/sessions && \ sudo service apache2 restart + - name: Cache Playwright browsers + uses: actions/cache@v2 + with: + path: ~/.cache/ms-playwright/ + key: ${{ runner.os }}-browsers + - name: Run tests run: | npm install && npm run sanity-tests-fast-fail diff --git a/.github/workflows/sanity-74.yml b/.github/workflows/sanity-74.yml index 544950796968c..085736a7bfe14 100644 --- a/.github/workflows/sanity-74.yml +++ b/.github/workflows/sanity-74.yml @@ -71,6 +71,12 @@ jobs: sudo chown www-data:www-data -R /var/lib/php/sessions && \ sudo service apache2 restart + - name: Cache Playwright browsers + uses: actions/cache@v2 + with: + path: ~/.cache/ms-playwright/ + key: ${{ runner.os }}-browsers + - name: Run tests run: | npm install && npm run sanity-tests-fast-fail diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index 20f2d651a2477..cd1925b5faaa3 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -72,6 +72,12 @@ jobs: sudo chown www-data:www-data -R /var/lib/php/sessions && \ sudo service apache2 restart + - name: Cache Playwright browsers + uses: actions/cache@v2 + with: + path: ~/.cache/ms-playwright/ + key: ${{ runner.os }}-browsers + - name: Run tests run: | npm install && npm run sanity-tests-fast-fail diff --git a/.github/workflows/ui-tests-code-checks.yml b/.github/workflows/ui-tests-code-checks.yml index 27edb7edc66b9..c93bcef632d79 100644 --- a/.github/workflows/ui-tests-code-checks.yml +++ b/.github/workflows/ui-tests-code-checks.yml @@ -19,6 +19,12 @@ jobs: - name: Checkout the repository uses: actions/checkout@v2 + - name: Cache Playwright browsers + uses: actions/cache@v2 + with: + path: ~/.cache/ms-playwright/ + key: ${{ runner.os }}-browsers + - name: Install dependencies in UI tests directory run: npm install @@ -34,6 +40,12 @@ jobs: - name: Checkout the repository uses: actions/checkout@v2 + - name: Cache Playwright browsers + uses: actions/cache@v2 + with: + path: ~/.cache/ms-playwright/ + key: ${{ runner.os }}-browsers + - name: Install dependencies in UI tests directory run: npm install