mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-15 23:15:30 +01:00
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:
parent
c6f5d5d65c
commit
759e585c29
1 changed files with 16 additions and 16 deletions
32
.github/workflows/playwright.yml
vendored
32
.github/workflows/playwright.yml
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue