Merge pull request #65 from StreamDemon/docs/reconcile-occ-roadmap-af… #98
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: | |
| # Least privilege: this workflow only needs to read the repository. | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Job name is the required status-check context in branch protection — keep it stable. | |
| check: | |
| name: Check & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| with: | |
| version: 11.9.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Format, lint & typecheck | |
| run: | | |
| pnpm exec vp run rules#check | |
| pnpm exec vp run backend#check | |
| pnpm exec vp run web#check | |
| - name: Tests | |
| run: | | |
| pnpm exec vp run rules#test | |
| pnpm exec vp run backend#test | |
| pnpm exec vp run web#test | |
| - name: Build | |
| run: | | |
| pnpm exec vp run rules#build | |
| pnpm exec vp run web#build |