Skip to content

Commit 068e825

Browse files
Cache the build step
1 parent b6bc76e commit 068e825

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/test-suite.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ jobs:
2424
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2525
restore-keys: |
2626
${{ runner.os }}-yarn-
27+
28+
- name: Caching Gatsby
29+
id: gatsby-cache-build
30+
uses: actions/cache@v2
31+
with:
32+
path: |
33+
public
34+
.cache
35+
key: ${{ runner.os }}-gatsby-build-${{ github.run_id }}
36+
restore-keys: |
37+
${{ runner.os }}-gatsby-build-
2738
2839
- name: Set Node.js
2940
uses: actions/setup-node@master
@@ -37,4 +48,8 @@ jobs:
3748
run: yarn run lint
3849

3950
- name: Build
40-
run: yarn run build
51+
run: yarn build --log-pages
52+
env:
53+
GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true
54+
CI: true
55+

0 commit comments

Comments
 (0)