-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3923d7
commit e80aa3e
Showing
4 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Description of the Problem / Feature | ||
|
||
## Explanation of the solution | ||
|
||
## Instructions on making this work | ||
|
||
## Describe environment variable changes | ||
|
||
## Preview of changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Analyze Bundle | ||
|
||
on: [push] | ||
|
||
jobs: | ||
analyze_bundle: | ||
runs-on: ubuntu-16gb | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "npm" | ||
|
||
# Maybe unnecessary, but prevents this job from racing to set the cache key | ||
# with the test workflow | ||
- uses: actions/cache/restore@v4 | ||
id: cache-modules | ||
with: | ||
path: node_modules | ||
key: modules-${{ hashFiles('package-lock.json')}} | ||
|
||
# If no full node_modules hit, install and prefer global package cache. | ||
- if: steps.cache-modules.outputs.cache-hit != 'true' | ||
run: npm ci --prefer-offline --no-audit | ||
|
||
- run: npm run analyze | ||
|
||
- name: Archive bundle analysis | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: bundle-analysis.zip | ||
path: .next/analyze/*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters