Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #323 from Hacker0x01/cache-build
Browse files Browse the repository at this point in the history
Cache the build step
  • Loading branch information
martijnrusschen authored Jul 7, 2023
2 parents 8db2742 + e708886 commit 30a1be1
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,18 @@ jobs:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-yarn-
- name: Caching Gatsby
id: gatsby-cache-build
uses: actions/cache@v3
with:
path: |
public
.cache
key: ${{ runner.os }}-gatsby-build-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-gatsby-build-
- name: Set Node.js
uses: actions/setup-node@master
Expand All @@ -36,5 +47,8 @@ jobs:
- name: Lint
run: yarn run lint

- name: Build
run: yarn run build
- name: Build Gatsby
run: yarn build --log-pages
env:
GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES: true
CI: true

0 comments on commit 30a1be1

Please sign in to comment.