chore(playwright.yml): add condition to run the job only for pull requests from danny-avila/LibreChat repository (#773)

chore(playwright.yml): comment out caching of Node.js modules and Playwright installations
This commit is contained in:
Danny Avila 2023-08-08 11:35:17 -04:00 committed by GitHub
parent c6f5d5d65c
commit 759e585c29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ on:
jobs:
tests_e2e:
name: Run Playwright tests
if: github.event.pull_request.head.repo.full_name == danny-avila/LibreChat
timeout-minutes: 60
runs-on: ubuntu-latest
env:
@ -37,13 +38,13 @@ jobs:
node-version: 18
cache: 'npm'
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# - name: Cache Node.js modules
# uses: actions/cache@v3
# with:
# path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-
- name: Install global dependencies
run: npm ci
@ -57,13 +58,13 @@ jobs:
- name: Build Client
run: npm run frontend
- name: Cache Playwright installations
uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright/
key: ${{ runner.os }}-pw-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-pw-
# - name: Cache Playwright installations
# uses: actions/cache@v3
# with:
# path: ~/.cache/ms-playwright/
# key: ${{ runner.os }}-pw-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-pw-
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium && npm install -D @playwright/test@latest
@ -77,5 +78,4 @@ jobs:
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 30
retention-days: 30