Skip to content

Release v0.3.0: Streaming API + Buffer Overflow Fixes (#3) #24

Release v0.3.0: Streaming API + Buffer Overflow Fixes (#3)

Release v0.3.0: Streaming API + Buffer Overflow Fixes (#3) #24

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
# Cancel in-progress runs when new commits are pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Run tests
run: npm test
- name: Build
run: npm run build
- name: Dogfood (flakiness detection)
run: npm run dogfood
- name: Verify zero external dependencies
run: |
if grep -q '"dependencies"' package.json; then
deps=$(node -e "console.log(Object.keys(require('./package.json').dependencies || {}).filter(d => !d.startsWith('@tuulbelt/')).length)")
if [ "$deps" != "0" ]; then
echo "ERROR: Found external dependencies!"
exit 1
fi
fi