feat(drawer): add drawer component with brain primitive and helm styling #3963
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| # Cancel superseded runs on the same ref (e.g. rapid pushes / force-pushes to a PR) so CI minutes | |
| # are not spent finishing builds that are already out of date. | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| # The docs app build prerenders many pages and needs a larger heap. | |
| NODE_OPTIONS: --max-old-space-size=6000 | |
| jobs: | |
| commitlint: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| # Required by wagoid/commitlint-github-action | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| # Required by wagoid/commitlint-github-action | |
| fetch-depth: 0 | |
| - name: Install Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .node-version | |
| - name: Lint commit messages | |
| uses: wagoid/commitlint-github-action@v5 | |
| with: | |
| failOnWarnings: true | |
| helpURL: https://github.com/goetzrobin/spartan/blob/main/CONTRIBUTING.md#-commit-message-guidelines | |
| format-and-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| # Full commit history so nx-set-shas can compute the affected base. `blob:none` keeps the | |
| # whole commit graph (affected still diffs correctly) but downloads file contents lazily - | |
| # a win for this light job that only touches the affected projects' files. | |
| fetch-depth: 0 | |
| filter: blob:none | |
| - uses: ./.github/actions/setup | |
| - uses: nrwl/nx-set-shas@v5 | |
| - name: format | |
| run: pnpm nx format:check --base=$NX_BASE --head=$NX_HEAD | |
| - name: lint | |
| run: pnpm nx affected -t lint --parallel=3 | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup | |
| - uses: nrwl/nx-set-shas@v5 | |
| - name: Build | |
| run: pnpm nx affected -t build --parallel=1 | |
| unit: | |
| runs-on: ubuntu-latest | |
| # No longer gated on `build`: vitest/jest run against source, so unit tests start immediately | |
| # and run in parallel with the build instead of waiting ~13 min for it. | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| # Blobless full-history clone: nx-set-shas needs the graph; vitest/jest only read the | |
| # affected projects' files, fetched lazily. | |
| fetch-depth: 0 | |
| filter: blob:none | |
| - uses: ./.github/actions/setup | |
| - uses: nrwl/nx-set-shas@v5 | |
| - name: Test | |
| run: pnpm nx affected -t test --parallel=3 | |
| e2e: | |
| runs-on: ubuntu-latest | |
| # Not gated on `build`: the e2e suite runs cypress against storybook (its cypress executor's | |
| # devServerTarget is ui-storybook:static-storybook), so it builds/serves storybook itself and | |
| # is independent of the docs-app build. It runs in parallel with the build job. | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| # Restore the Cypress binary cache before install so a cypress postinstall is a no-op too. | |
| - name: Cache Cypress binary | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/Cypress | |
| key: cypress-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | |
| restore-keys: cypress-${{ runner.os }}- | |
| - uses: ./.github/actions/setup | |
| - uses: nrwl/nx-set-shas@v5 | |
| - name: Install Cypress | |
| run: npx cypress install | |
| - name: End-to-end test | |
| # Exclude trpc-app-e2e: it is not tagged scope:e2e and was never run in CI (it needs a | |
| # database/health endpoint that is not provisioned here). Only the storybook e2e runs. | |
| run: pnpm nx affected -t e2e --exclude=trpc-app-e2e --parallel=1 --outputStyle=stream |