Skip to content

Commit b08d42c

Browse files
added cache for yarn build step
ISSUE: CLDSRVCLT-7
1 parent 1e76042 commit b08d42c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ jobs:
3030
- name: Setup Smithy CLI
3131
uses: ./.github/actions/setup-smithy
3232

33+
- name: Cache build output
34+
uses: actions/cache@v4
35+
with:
36+
path: |
37+
build/
38+
dist/
39+
key: build-${{ hashFiles('models/**', 'service/**', 'smithy-build.json') }}
40+
restore-keys: |
41+
build-
42+
3343
- name: Build
3444
run: yarn build
3545

@@ -60,6 +70,16 @@ jobs:
6070
- name: Setup Smithy CLI
6171
uses: ./.github/actions/setup-smithy
6272

73+
- name: Cache build output
74+
uses: actions/cache@v4
75+
with:
76+
path: |
77+
build/
78+
dist/
79+
key: build-${{ hashFiles('models/**', 'service/**', 'smithy-build.json') }}
80+
restore-keys: |
81+
build-
82+
6383
- name: Build
6484
run: yarn build
6585

@@ -99,6 +119,16 @@ jobs:
99119
- name: Setup Smithy CLI
100120
uses: ./.github/actions/setup-smithy
101121

122+
- name: Cache build output
123+
uses: actions/cache@v4
124+
with:
125+
path: |
126+
build/
127+
dist/
128+
key: build-${{ hashFiles('models/**', 'service/**', 'smithy-build.json') }}
129+
restore-keys: |
130+
build-
131+
102132
- name: Build
103133
run: yarn build
104134

0 commit comments

Comments
 (0)