Skip to content

Commit 8199a32

Browse files
committed
cache .next/cache build directory
1 parent f213397 commit 8199a32

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Run Tests (Webapp)
7575
run: npm test
7676

77-
- name: Cache Next.js build
77+
- name: Restore cache Next.js build
7878
uses: actions/cache@v3
7979
with:
8080
path: .next/cache
@@ -86,6 +86,12 @@ jobs:
8686
- name: Build Webapp
8787
run: yarn build
8888

89+
- name: Store cache Next.js build
90+
uses: actions/cache@v3
91+
with:
92+
path: .next/cache
93+
key: ${{ runner.os }}-nextjs-${{ github.ref }}-${{ github.sha }}
94+
8995
# Merge Blocker: Ensure Both Builds Pass
9096
merge_guard:
9197
name: Ensure All Jobs Passed

0 commit comments

Comments
 (0)