Skip to content

chore(ladle): drive global chrome theme from the theme switch (menu a… #1480

chore(ladle): drive global chrome theme from the theme switch (menu a…

chore(ladle): drive global chrome theme from the theme switch (menu a… #1480

Workflow file for this run

name: CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22.x
- uses: pnpm/action-setup@v4
with:
version: 10.30.0
run_install: true
- run: pnpm run lint
check-ts:
runs-on: ubuntu-latest
name: Check Types
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22.x
- uses: pnpm/action-setup@v4
with:
version: 10.30.0
run_install: true
- run: pnpm run check
check-format:
runs-on: ubuntu-latest
name: Check Formatting
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22.x
- uses: pnpm/action-setup@v4
with:
version: 10.30.0
run_install: true
- run: pnpm run format:check
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22.x
- uses: pnpm/action-setup@v4
with:
version: 10.30.0
run_install: true
- name: Install Playwright browser
run: pnpm --filter @uzh-bf/design-system test:install
# Smoke only in CI for now: it is fast and reliable. The axe a11y sweep
# (pnpm test:a11y) surfaced real candidate issues that still need triage
# (real vs render-timing) before it can gate — tracked in the test plan.
- name: Run Playwright smoke tests
run: pnpm --filter @uzh-bf/design-system test:smoke
- name: Upload Playwright report
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: packages/design-system/playwright-report/
retention-days: 14
build:
name: Build and Publish
runs-on: ubuntu-latest
needs: [check-ts, test]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22.x
- uses: pnpm/action-setup@v4
with:
version: 10.30.0
run_install: true
- name: Build
working-directory: packages/design-system
run: pnpm run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: packages/design-system/package.json
if: startsWith(github.ref, 'refs/tags/')
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
access: public
package: packages/design-system/package.json
if: startsWith(github.ref, 'refs/tags/')