Fix module issues with mongo-datastore #209
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: | |
| types: ["opened", "reopened", "synchronize"] | |
| # Enforce least privilege - no default permissions at workflow level | |
| permissions: {} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| steps: | |
| - name: Perform source code checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node version | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache Package Node Modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.pnpm-store | |
| node_modules | |
| packages/*/node_modules | |
| key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
| restore-keys: | | |
| pnpm- | |
| - name: Install | |
| run: | | |
| npm install -g npm@^11.2.0 | |
| npm install -g pnpm@latest-10 | |
| pnpm install | |
| - name: Build | |
| run: pnpm run build | |
| if: github.ref != 'refs/heads/master' | |
| - name: Type check | |
| run: pnpm run typecheck | |
| - name: Check | |
| run: pnpm run check | |
| - name: Lint | |
| run: pnpm run lint | |
| - name: Test | |
| run: pnpm test | |
| if: github.ref != 'refs/heads/master' |