Skip to content

Commit

Permalink
chore: add caching (#17663)
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv authored Dec 2, 2024
1 parent 08f7796 commit 5aa10ad
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, edited]
name: Reporter
Expand All @@ -18,7 +15,16 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Node
uses: './.github/actions/setup_node'
- name: Install dependencies
- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
with:
path: |
node_modules
packages/*/node_modules
key: node_modules-cache-${{ hashFiles('package-lock.json', 'packages/*/package.json') }}
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Install dependencies
uses: "./.github/actions/npm_install_from_cache"
- name: Build components package
working-directory: packages/components
Expand All @@ -28,7 +34,7 @@ jobs:
- name: Coveralls Parallel
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949
with:
flag-name: ${{ matrix.shard}}
flag-name: ${{ matrix.shard }}
parallel: true

finish:
Expand Down

0 comments on commit 5aa10ad

Please sign in to comment.