Skip to content

Commit de62e9e

Browse files
authored
chore: add codecov bundle analysis (#41)
* chore: add codecov bundle analysis * add job for bundle analysis
1 parent feeaaf1 commit de62e9e

File tree

4 files changed

+1475
-62
lines changed

4 files changed

+1475
-62
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,22 @@ jobs:
8181
cache: 'npm'
8282
node-version: 22
8383
- run: npm ci --ignore-scripts --no-audit --no-fund
84-
- name: Build package
85-
run: npm run build
86-
- name: Lint package
87-
run: npm run lint-package
84+
- run: npm run build
85+
- run: npm run lint-package
86+
87+
bundle-analysis:
88+
name: Report bundle analysis (codecov)
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v5
92+
- uses: actions/setup-node@v5
93+
with:
94+
cache: 'npm'
95+
node-version: 22
96+
- run: npm ci --ignore-scripts --no-audit --no-fund
97+
- run: npm run build
98+
env:
99+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
88100

89101
npm-audit:
90102
name: Audit packages
@@ -97,5 +109,4 @@ jobs:
97109
with:
98110
cache: 'npm'
99111
node-version: 22
100-
- name: npm audit
101-
run: npm audit --audit-level=high
112+
- run: npm audit --audit-level=high

0 commit comments

Comments
 (0)