Skip to content

Commit 5aa10ad

Browse files
authored
chore: add caching (deriv-com#17663)
1 parent 08f7796 commit 5aa10ad

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/coveralls.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
on:
2-
push:
3-
branches:
4-
- master
52
pull_request:
63
types: [opened, synchronize, edited]
74
name: Reporter
@@ -18,7 +15,16 @@ jobs:
1815
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
1916
- name: Setup Node
2017
uses: './.github/actions/setup_node'
21-
- name: Install dependencies
18+
- name: Cache node modules
19+
id: cache-npm
20+
uses: actions/cache@v4
21+
with:
22+
path: |
23+
node_modules
24+
packages/*/node_modules
25+
key: node_modules-cache-${{ hashFiles('package-lock.json', 'packages/*/package.json') }}
26+
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
27+
name: Install dependencies
2228
uses: "./.github/actions/npm_install_from_cache"
2329
- name: Build components package
2430
working-directory: packages/components
@@ -28,7 +34,7 @@ jobs:
2834
- name: Coveralls Parallel
2935
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949
3036
with:
31-
flag-name: ${{ matrix.shard}}
37+
flag-name: ${{ matrix.shard }}
3238
parallel: true
3339

3440
finish:

0 commit comments

Comments
 (0)