generated from theholocron/node-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 872 Bytes
/
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
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
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
- uses: jackyef/bundlewatch-gh-action@0.3.0
name: Analyze using BundleWatch
with:
build-script: npm run build
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}