-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chore) add gzip size compression report (#3400)
This will report the gzip'd size of the CDN build output on every pull request, being run via GitHub actions. * Workflow: only report size of minified files
- Loading branch information
1 parent
59b8f1f
commit ef45496
Showing
2 changed files
with
25 additions
and
0 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,21 @@ | ||
# This workflow computes the size of a CDN build's output on all Javascript files. | ||
# Reported file sizes are after the result of gzip compression. | ||
# Compression action used: https://github.com/preactjs/compressed-size-action | ||
|
||
name: Size Report (gzip) | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Compute Compressed Size | ||
uses: preactjs/compressed-size-action@v2 | ||
with: | ||
build-script: "build-cdn" | ||
compression: "gzip" | ||
pattern: "./build/{*.min.js,es/*.min.js,languages/*.min.js,es/languages/*.min.js}" |
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