chore: seperate docs and lib to packages #169
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: Validate | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| task: [lint, typecheck, prettier, test] | |
| name: ${{ matrix.task }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: pnpm install | |
| - name: Run lint | |
| if: matrix.task == 'lint' | |
| run: pnpm run lint | |
| - name: Run typecheck | |
| if: matrix.task == 'typecheck' | |
| run: pnpm run typecheck | |
| - name: Run prettier | |
| if: matrix.task == 'prettier' | |
| run: pnpm run prettier | |
| - name: Run tests | |
| if: matrix.task == 'test' | |
| run: pnpm test -- --maxWorkers=2 --maxConcurrent=2 | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: checks | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - run: pnpm install | |
| - run: pnpm run build |