Skip to content

fix(ci): drop Node 18 from CI matrix #17

fix(ci): drop Node 18 from CI matrix

fix(ci): drop Node 18 from CI matrix #17

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
commitlint:
name: Lint Commit Messages
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
with:
configFile: commitlint.config.js
test:
name: Test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- name: Checkout code
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: Typecheck
run: npx turbo run typecheck
- name: Run tests
run: npx turbo run test
- name: Build packages
run: npx turbo run build
- name: Check package sizes
run: |
for pkg in geo-audit geo-seo geomark geokit; do
echo "--- $pkg ---"
cd packages/$pkg
OUTPUT=$(npm pack --dry-run 2>&1)
echo "$OUTPUT"
SIZE=$(echo "$OUTPUT" | grep "package size" | awk '{print $NF}' | sed 's/kB//')
if (( $(echo "$SIZE > 100" | bc -l) )); then
echo "--- $pkg size ($SIZE kB) exceeds 100 kB limit"
exit 1
fi
echo "--- $pkg size ($SIZE kB) is within limits"
cd ../..
done