Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching playwright browsers on github workflows #25333

Merged
merged 3 commits into from Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
6 changes: 6 additions & 0 deletions .github/workflows/sanity.yml
Expand Up @@ -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
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