Skip to content

Commit 743f271

Browse files
authored
test(workflow): add pptr link checker (#3516)
* test(workflow): add pptr link checker * test(workflow): cleanup unnecessary code * Revert "test(workflow): cleanup unnecessary code" This reverts commit 628100a. * test(workflow): cleanup unnecessary step * test(docs): restore cache before installing pkg
1 parent 6197624 commit 743f271

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/reusable-e2e.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ jobs:
6868
key: ${{ runner.os }}-cypress-${{ hashFiles('yarn.lock') }}
6969
env:
7070
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
71+
- name: Restore Puppeteer runner from Cache
72+
uses: actions/cache@v3
73+
id: restore-puppeteer-cache
74+
with:
75+
path: ~/.cache/puppeteer
76+
key: ${{ runner.os }}-puppeteer-${{ hashFiles('yarn.lock') }}
77+
env:
78+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
7179
- name: Install packages
7280
uses: ./.github/actions/install-with-retries
7381
with:
@@ -443,6 +451,15 @@ jobs:
443451
env:
444452
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
445453

454+
- name: Restore Puppeteer runner cache
455+
uses: actions/cache@v3
456+
id: restore-puppeteer-cache
457+
with:
458+
path: ~/.cache/puppeteer
459+
key: ${{ runner.os }}-puppeteer-${{ hashFiles('yarn.lock') }}
460+
env:
461+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
462+
446463
- name: Restore node_modules cache
447464
uses: actions/cache@v3
448465
id: restore-cache
@@ -455,7 +472,7 @@ jobs:
455472
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3
456473

457474
- name: Install packages
458-
if: steps.restore-cache.outputs.cache-hit != 'true' || steps.restore-cypress-cache.outputs.cache-hit != 'true'
475+
if: steps.restore-cache.outputs.cache-hit != 'true' || steps.restore-puppeteer-cache.outputs.cache-hit != 'true' || steps.restore-cypress-cache.outputs.cache-hit != 'true'
459476
uses: ./.github/actions/install-with-retries
460477
with:
461478
skip-cypress-binary: false
@@ -480,6 +497,9 @@ jobs:
480497
- name: Start docs site
481498
run: yarn docs start & npx wait-on -c waitOnConfig.json -t 20000 http-get://localhost:3000
482499

500+
- name: Run Docs link checker
501+
run: yarn docs test:links
502+
483503
- name: Run E2E tests against docs
484504
run: yarn workspace e2e test:theme
485505
id: e2e

0 commit comments

Comments
 (0)