Skip to content

Commit

Permalink
feat: refactoring of e2e workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-luzmo committed Aug 23, 2024
1 parent 372a772 commit b00d525
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Cache node modules
uses: actions/cache@v2
- name: Cache restore
uses: actions/cache/restore@v2
id: cache-restore
with:
path: e2e/node_modules
key: "${{ runner.os }}-node-${{ hashFiles('e2e/package-lock.json') }}"
- name: Cache browser
uses: actions/cache@v2
with:
path: e2e/$PLAYWRIGHT_BROWSERS_PATH
path: |
e2e/node_modules
e2e/$PLAYWRIGHT_BROWSERS_PATH
key: "${{ runner.os }}-node-${{ hashFiles('e2e/package-lock.json') }}"
- name: Install dependencies
run: npm ci
Expand All @@ -42,3 +40,10 @@ jobs:
e2e/playwright-report/
e2e/test-results/
retention-days: 10
- name: Cache save
uses: actions/cache/save@v2
with:
path: |
e2e/node_modules
e2e/$PLAYWRIGHT_BROWSERS_PATH
key: ${{ steps.cache-restore.outputs.cache-primary-key }}

0 comments on commit b00d525

Please sign in to comment.