Skip to content

Commit cc5a18f

Browse files
committed
chore: test dep
1 parent 34f85c1 commit cc5a18f

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/actions/cached-node-modules/action.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,24 @@ runs:
2121
path: '**/node_modules'
2222
# Use the combo between node version, name, and SHA-256 hash of the lock file as cache key so that
2323
# if one of them changes the cache is invalidated/discarded
24-
key: ${{ inputs.nodeVersion }}-cache-utilities-node-modules-${{ hashFiles('./package-lock.json') }}
24+
key: ${{ inputs.nodeVersion }}-node-modules-${{ hashFiles('./package-lock.json') }}
2525
- name: Install dependencies
2626
# We can skip the installation if there was a cache hit
2727
if: steps.cache-node-modules.outputs.cache-hit != 'true'
2828
run: npm ci
2929
shell: bash
3030
- name: Build packages
31-
# Regardless of whether the cache was hit or not, we need to build the packages, unless the caller says otherwise
31+
# By default we build the packages, but we can skip this step if the caller wants to
3232
if: inputs.build == 'true'
33-
# We build the commons and jmspath packages first, then the others in parallel to speed up the process
34-
# even though we could just run `npm run build` in the root folder and build them in
35-
# sequence, but still in the correct order.
36-
run: |
37-
npm run build
33+
run: npm run build -w packages/commons
34+
npm run build -w packages/jmespath
35+
npm run build -w packages/testing
36+
npm run build -w packages/logger & \
37+
npm run build -w packages/tracer & \
38+
npm run build -w packages/metrics & \
39+
npm run build -w packages/parameters & \
40+
npm run build -w packages/idempotency & \
41+
npm run build -w packages/batch & \
42+
npm run build -w packages/parser & \
43+
npm run build -w packages/event-handler
3844
shell: bash

0 commit comments

Comments
 (0)