Skip to content

Commit f213397

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ jobs:
7474
- name: Run Tests (Webapp)
7575
run: npm test
7676

77+
- name: Cache Next.js build
78+
uses: actions/cache@v3
79+
with:
80+
path: .next/cache
81+
key: ${{ runner.os }}-nextjs-${{ github.ref }}-${{ github.sha }}
82+
restore-keys: |
83+
${{ runner.os }}-nextjs-${{ github.ref }}-
84+
${{ runner.os }}-nextjs
85+
7786
- name: Build Webapp
7887
run: yarn build
7988

0 commit comments

Comments
 (0)