From 6c8d1af1b5d302082da0b274f8bed61c1a477f47 Mon Sep 17 00:00:00 2001 From: Boubker Bribri Date: Tue, 13 Jul 2021 14:30:41 +0200 Subject: [PATCH] Add cache for all tests UI workflows --- .github/workflows/sanity-72.yml | 6 ++++++ .github/workflows/sanity-73.yml | 6 ++++++ .github/workflows/sanity-74.yml | 6 ++++++ .github/workflows/sanity.yml | 2 +- .github/workflows/ui-tests-code-checks.yml | 12 ++++++++++++ 5 files changed, 31 insertions(+), 1 deletion(-) 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 c5321c878635b..cd1925b5faaa3 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -75,7 +75,7 @@ jobs: - name: Cache Playwright browsers uses: actions/cache@v2 with: - path: ~/.cache/ms-playwright + path: ~/.cache/ms-playwright/ key: ${{ runner.os }}-browsers - name: Run tests 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