Skip to content

Stage 4: Composites #50

Stage 4: Composites

Stage 4: Composites #50

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Install
run: yarn install --immutable
# silk-core package exports resolve types/JS from dist/; Linaria also
# requires core dist before the web package builds.
- name: Build
run: yarn build
- name: Typecheck
run: yarn typecheck
- name: Test
run: yarn test
- name: Packed consumer check
run: yarn test:packed
- name: Performance budgets
run: yarn test:perf
storybook-test:
name: Storybook Test
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Install
run: yarn install --immutable
- name: Build packages
run: yarn build
- name: Build Storybook
run: yarn docs:build
- name: Install Playwright Chromium
run: yarn workspace @reactive/silk-docs exec playwright install --with-deps chromium
- name: Run Storybook test-runner
run: yarn test:storybook