-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split bundle size in separate job
- Loading branch information
Showing
5 changed files
with
56 additions
and
7 deletions.
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,28 @@ | ||
name: Bundle size | ||
on: | ||
workflow_call: | ||
inputs: | ||
bundle-artifact-name-prefix: | ||
required: true | ||
type: string | ||
ref: | ||
description: Git reference to checkout. Defaults to @actions/checkout default. | ||
type: string | ||
required: false | ||
default: '' | ||
|
||
env: | ||
E2E_DIR: projects/ngx-meta/e2e | ||
|
||
#👇 Needed for PR bundle size comment only | ||
#permissions: | ||
# pull_requests: write | ||
|
||
jobs: | ||
bundle-size: | ||
name: Bundle size - Angular v${{ matrix.version }} | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
strategy: | ||
matrix: | ||
version: [15, 16, 17] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"cache:clean": "ng cache clean", | ||
"analyze-main-bundle": "pnpm run build:source-map && pnpm run source-map-explorer", | ||
"source-map-explorer": "source-map-explorer dist/a15/main*.js", | ||
"bundle-pr-comment": "pnpm run build:source-map && pnpm run source-map-explorer --tsv | ../format-bundle-pr-comment.sh -h 'Angular v15' -f bundle-size-pr-comment.md" | ||
"bundle-pr-comment": "pnpm run source-map-explorer --tsv | ../format-bundle-pr-comment.sh -h 'Angular v15' -f bundle-size-pr-comment.md" | ||
}, | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"cache:clean": "ng cache clean", | ||
"analyze-main-bundle": "pnpm run build:source-map && pnpm run source-map-explorer", | ||
"source-map-explorer": "source-map-explorer dist/a16/main*.js", | ||
"bundle-pr-comment": "pnpm run build:source-map && pnpm run source-map-explorer --tsv | ../format-bundle-pr-comment.sh -h 'Angular v16' -f bundle-size-pr-comment.md" | ||
"bundle-pr-comment": "pnpm run source-map-explorer --tsv | ../format-bundle-pr-comment.sh -h 'Angular v16' -f bundle-size-pr-comment.md" | ||
}, | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"cache:clean": "ng cache clean", | ||
"analyze-main-bundle": "pnpm run build:source-map && pnpm run source-map-explorer", | ||
"source-map-explorer": "source-map-explorer dist/a17/browser/main*.js", | ||
"bundle-pr-comment": "pnpm run build:source-map && pnpm run source-map-explorer --tsv | ../format-bundle-pr-comment.sh -h 'Angular v17' -f bundle-size-pr-comment.md" | ||
"bundle-pr-comment": "pnpm run source-map-explorer --tsv | ../format-bundle-pr-comment.sh -h 'Angular v17' -f bundle-size-pr-comment.md" | ||
}, | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
|