Version Packages (#101) #94
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| name: Validate & test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.11" | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Build leadtype | |
| run: bun run --filter leadtype build | |
| # The `leadtype` workspace bin symlinks only after dist exists, so the | |
| # first install (pre-build) skips it. Re-install to link the CLI before | |
| # invoking it the way a consumer would (`leadtype lint`). | |
| - name: Link CLI | |
| run: bun install | |
| # Dogfood our own CI feature: lint this repo's docs with the exact | |
| # command we recommend in docs/pipeline/validate-in-ci.mdx. | |
| - name: Validate docs (leadtype lint) | |
| run: bun x leadtype lint docs --format github --error-unknown --max-warnings 0 | |
| - name: Lint | |
| run: bun run --filter leadtype lint | |
| - name: Type check | |
| run: bun run --filter leadtype check-types | |
| - name: Test | |
| run: bun run --filter leadtype test |