-
-
Notifications
You must be signed in to change notification settings - Fork 521
29 lines (26 loc) · 647 Bytes
/
ci.yml
File metadata and controls
29 lines (26 loc) · 647 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
28
29
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- uses: preactjs/compressed-size-action@v2
with:
pattern: 'build/**/*.{js,css}'
exclude: 'build/assets/{prerender,xmldom,release,repos}-*.js'
strip-hash: '-(.{8})\.'
minimum-change-threshold: 100