mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
* ci: Bump CI versions * ci: Limit compressed-size to microbundle itself * ci: Limit push CI to master * test: Drop output messages from tests, not reliable enough nor completely necessary * ci: Revert removal of test reporter * ci: Downgrade Node versions * revert: Try reverting this whilst we're at it * ci: Bump release workflow
28 lines
779 B
YAML
28 lines
779 B
YAML
name: compressed-size
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: compressed-size-action
|
|
uses: preactjs/compressed-size-action@v2
|
|
with:
|
|
pattern: 'dist/!(*.js.map)'
|
|
build-script: build
|
|
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
|
|
|
- name: compressed-size-action
|
|
uses: preactjs/compressed-size-action@v2
|
|
with:
|
|
pattern: 'test/fixtures/**/dist/!(*.map)'
|
|
# We're using this to report size differences, not test, so update snapshots if they fail.
|
|
# The CI can catch the test failures instead.
|
|
build-script: 'test -- -u'
|
|
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|