Skip to content

Commit 57c6bea

Browse files
committed
fix workflows?
1 parent 2e2cd1a commit 57c6bea

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,15 @@ jobs:
155155
if: steps.dist.outputs.cache-hit != 'true'
156156
- name: Build docs
157157
run: npm run build:docs
158+
- uses: actions/cache@v4
159+
id: puppeteer-cache
160+
name: Cache Puppeteer browsers
161+
with:
162+
path: ~/.cache/puppeteer
163+
key: ${{ runner.os }}-puppeteer-${{ hashFiles('package-lock.json') }}
158164
- name: Install Chrome for Puppeteer
159-
run: npx puppeteer browsers install chrome
165+
run: npx puppeteer browsers install chrome
166+
if: steps.puppeteer-cache.outputs.cache-hit != 'true'
160167
- name: A11y tests
161168
run: npm run serve:docs & npm run test:a11y
162169
test_component:

.github/workflows/pr-preview.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,29 @@ jobs:
3434
path: '**/node_modules'
3535
key: ${{ runner.os }}-npm-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }}
3636
- run: npm install --frozen-lockfile
37-
if: steps.yarn-cache.outputs.cache-hit != 'true'
37+
if: steps.npm-cache.outputs.cache-hit != 'true'
3838
- run: npm run build
3939
name: Build data view
4040
- uses: actions/cache@v4
4141
id: docs-cache
4242
name: Load webpack cache
4343
with:
4444
path: '.cache'
45-
key: ${{ runner.os }}-v4-${{ hashFiles('yarn.lock') }}
45+
key: ${{ runner.os }}-v4-${{ hashFiles('package-lock.json') }}
4646
- run: npm run build:docs
4747
name: Build docs
4848
- run: node .github/upload-preview.js packages/module/public
4949
name: Upload docs
5050
if: always()
51+
- uses: actions/cache@v4
52+
id: puppeteer-cache
53+
name: Cache Puppeteer browsers
54+
with:
55+
path: ~/.cache/puppeteer
56+
key: ${{ runner.os }}-puppeteer-${{ hashFiles('package-lock.json') }}
5157
- name: Install Chrome for Puppeteer
52-
run: npx puppeteer browsers install chrome
58+
run: npx puppeteer browsers install chrome
59+
if: steps.puppeteer-cache.outputs.cache-hit != 'true'
5360
- run: npm run serve:docs & npm run test:a11y
5461
name: a11y tests
5562
- run: node .github/upload-preview.js packages/module/coverage

0 commit comments

Comments
 (0)