Skip to content

Commit

Permalink
ci: change runner [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
yld-weng committed Mar 25, 2022
1 parent a7e70c8 commit ded3c4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ jobs:

# Enable incremental build
- name: Incremental build
run: NODE_OPTIONS=--max_old_space_size=4096 npm run build:noGA
run: npm run build:noGA
env:
NODE_OPTIONS: "--max-old-space-size=8192"
EVENT_API_KEY_1: ${{ secrets.EVENT_API_KEY_1 }}
EVENT_API_KEY_2: ${{ secrets.EVENT_API_KEY_2 }}
EVENT_ORG_ID_1: ${{ secrets.EVENT_ORG_ID_1 }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
Deploy-QA:
runs-on: ubuntu-latest
runs-on: windows-2019
defaults:
run:
shell: bash
Expand All @@ -43,8 +43,8 @@ jobs:
path: |
public
.cache
key: ${{ runner.os }}-gatsby-v4-qa-${{ github.run_id }}
restore-keys: ${{ runner.os }}-gatsby-v4-qa-
key: ${{ runner.os }}-v4-gatsby-qa-${{ github.run_id }}
restore-keys: ${{ runner.os }}-v4-gatsby-qa-

- name: Install dependencies
run: npm ci
Expand All @@ -59,7 +59,7 @@ jobs:
npm run build:qa
rm -f public/CNAME
env:
NODE_OPTIONS: '--max_old_space_size=4096'
NODE_OPTIONS: "--max-old-space-size=8192"
EVENT_API_KEY_1: ${{ secrets.EVENT_API_KEY_1 }}
EVENT_API_KEY_2: ${{ secrets.EVENT_API_KEY_2 }}
EVENT_ORG_ID_1: ${{ secrets.EVENT_ORG_ID_1 }}
Expand Down
9 changes: 8 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,14 @@ module.exports = {
cache_busting_mode: "none" // Work with offline plugin
}
},
`gatsby-plugin-offline`, // should be listed after the manifest plugin
{
resolve: `gatsby-plugin-offline`,
options: {
workboxConfig: {
maximumFileSizeToCacheInBytes: 20971520
},
},
}, // should be listed after the manifest plugin
"gatsby-plugin-postcss",
/***************** FLEXSEARCH ********************/
{
Expand Down

0 comments on commit ded3c4a

Please sign in to comment.