-
Notifications
You must be signed in to change notification settings - Fork 361
27 lines (24 loc) · 779 Bytes
/
size.yml
File metadata and controls
27 lines (24 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 }}'