This repository was archived by the owner on Sep 14, 2026. It is now read-only.
Repository navigation
Block fork pull request workflow jobs (#26) #146
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: | |
| branches: [main] | |
| jobs: | |
| build: | |
| if: ${{ github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository }} | |
| name: CI - build & test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Set up NodeJS | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build and test | |
| run: | | |
| pnpm -r compile-ts | |
| pnpm -r source | |
| pnpm -r build | |
| pnpm -r test | |
| - name: Run linting/formatting checks | |
| run: | | |
| pnpm lint:ci | |
| pnpm format:ci |