Skip to content

Merge pull request #3 from cueapi/security/wave-1 #9

Merge pull request #3 from cueapi/security/wave-1

Merge pull request #3 from cueapi/security/wave-1 #9

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
ci:
name: Typecheck, Lint, Test, Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Build
run: pnpm build
- name: Check bundle size
run: |
ESM_SIZE=$(wc -c < dist/index.js)
echo "ESM bundle: ${ESM_SIZE} bytes"
if [ "$ESM_SIZE" -gt 20480 ]; then
echo "ERROR: Bundle size exceeds 20KB limit"
exit 1
fi