generated from theholocron/monorepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.01 KB
/
audit.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Audit
# @TODO: add in more things like:
# - [ ] performance checks (using yellowpages, googles tools, etc)
# - [ ] dead css checks
# - [ ] coverage drops
on: # yamllint disable-line rule:truthy
pull_request:
types:
- synchronize
- opened
jobs:
bundle-size:
name: Audit the bundle size
runs-on: ubuntu-latest
strategy:
matrix:
package:
- packages/bootstrap
steps:
- uses: actions/checkout@v4
name: Checkout repository
with:
fetch-depth: 0
- uses: actions/setup-node@v4
name: Setup Node.js @v20
with:
cache: npm
node-version: 20.x
- run: npm ci
name: Install dependencies
- name: Change to package directory
run: cd ${{ matrix.package }}
- uses: jackyef/bundlewatch-gh-action@0.3.0
name: Analyze using BundleWatch
with:
build-script: npm run build:lib
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}