Skip to content

Merge pull request #10 from minipekka25/changeset-release/main #39

Merge pull request #10 from minipekka25/changeset-release/main

Merge pull request #10 from minipekka25/changeset-release/main #39

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build-test-size:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run typecheck
# Build runtime first — @knitkit/cli and @knitkit/node consume it at runtime.
- run: npm run --workspace=@knitkit/runtime build
- run: npm run --workspace=@knitkit/cli build
- run: npm run --workspace=@knitkit/node build
- run: npm run --workspace=@knitkit/react build
- run: npm run --workspace=@knitkit/overrides build
- run: npm run --workspace=@knitkit/edge build
- run: npm run --workspace=@knitkit/create build
# Package unit tests only. The example's Playwright smoke test is network-
# dependent (esm.sh) and browser-dependent; it is run locally (see README),
# not as a CI gate.
- run: npm run --workspace=@knitkit/runtime test
- run: npm run --workspace=@knitkit/cli test
- run: npm run --workspace=@knitkit/node test
- run: npm run --workspace=@knitkit/react test
- run: npm run --workspace=@knitkit/overrides test
- run: npm run --workspace=@knitkit/edge test
- run: npm run --workspace=@knitkit/create test
- run: node packages/cli/dist/index.js validate spec/examples/checkout.manifest.json
- run: npm run --workspace=@knitkit/runtime size
if: matrix.os == 'ubuntu-latest'