-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jerel Miller <[email protected]>
- Loading branch information
1 parent
427578d
commit df5300f
Showing
4 changed files
with
52 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,5 @@ | ||
--- | ||
"apollo-client-devtools": patch | ||
--- | ||
|
||
Use relative-CI to monitor build artefact sizes |
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,28 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.x" | ||
|
||
# Install dependencies | ||
- run: npm ci | ||
|
||
# Build and output bunle stats to webpack-stats.json | ||
- run: yarn build --env TARGET=chrome --json webpack-stats.json | ||
|
||
# Upload webpack-stats.json to use on relative-ci.yaml workflow | ||
- name: Upload webpack stats artifact | ||
uses: relative-ci/agent-upload-artifact-action@v1 | ||
with: | ||
webpackStatsFile: ./webpack-stats.json |
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,17 @@ | ||
name: RelativeCI | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Build"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send bundle stats and build information to RelativeCI | ||
uses: relative-ci/agent-action@v2 | ||
with: | ||
key: ${{ secrets.RELATIVE_CI_KEY }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ build | |
!./dist/.gitkeep | ||
*.zip | ||
.DS_Store | ||
development/server/db.json | ||
development/server/db.json | ||
webpack-stats.json |