Skip to content

Commit

Permalink
Add cache for all tests UI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
boubkerbribri committed Jul 13, 2021
1 parent 69fea40 commit 6c8d1af
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/sanity-72.yml
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/sanity-73.yml
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/sanity-74.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanity.yml
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/ui-tests-code-checks.yml
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 6c8d1af

Please sign in to comment.