build(deps-dev): bump @types/node from 25.6.0 to 25.7.0 (#57) #131
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 | |
| workflow_dispatch: | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Read tool versions | |
| id: tool_versions | |
| run: ./.github/scripts/read-tool-versions.sh >> "$GITHUB_OUTPUT" | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| with: | |
| version: ${{ steps.tool_versions.outputs.pnpm }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: ${{ steps.tool_versions.outputs.node }} | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Record installed pi version | |
| run: | | |
| version=$(node -p "require('./node_modules/@earendil-works/pi-coding-agent/package.json').version") | |
| echo "PI_COMPAT_VERSION=${version}" >> "$GITHUB_ENV" | |
| - name: Check formatting, lint, and types | |
| run: pnpm run check | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Smoke test extension entrypoint | |
| run: pnpm run smoke | |
| - name: Build package bundle | |
| run: pnpm run pack | |
| - name: Verify package contents | |
| run: pnpm pack --dry-run | |
| resolve-pi-compat: | |
| name: Resolve pi compatibility window | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| outputs: | |
| pi-versions: ${{ steps.pi_versions.outputs.versions }} | |
| latest-pi-version: ${{ steps.pi_versions.outputs.latest }} | |
| oldest-pi-version: ${{ steps.pi_versions.outputs.oldest }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Read tool versions | |
| id: tool_versions | |
| run: ./.github/scripts/read-tool-versions.sh >> "$GITHUB_OUTPUT" | |
| - name: Set up Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: ${{ steps.tool_versions.outputs.node }} | |
| - name: Resolve supported pi versions | |
| id: pi_versions | |
| env: | |
| PI_VERSION_COUNT: 5 | |
| run: node ./.github/scripts/resolve-pi-versions.mjs | |
| integration-compat: | |
| name: Integration compatibility (Node ${{ matrix.node-version }}, pi ${{ matrix.pi-target.version }}) | |
| needs: resolve-pi-compat | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: | |
| - 22 | |
| - 24 | |
| pi-target: ${{ fromJson(needs.resolve-pi-compat.outputs.pi-versions) }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Read tool versions | |
| id: tool_versions | |
| run: ./.github/scripts/read-tool-versions.sh >> "$GITHUB_OUTPUT" | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| with: | |
| version: ${{ steps.tool_versions.outputs.pnpm }} | |
| - name: Set up Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install pi compatibility target | |
| run: pnpm add -D ${{ matrix.pi-target.piAiSpec }} ${{ matrix.pi-target.piCodingAgentSpec }} --lockfile=false | |
| - name: Run integration tests against pi ${{ matrix.pi-target.version }} | |
| env: | |
| PI_COMPAT_VERSION: ${{ matrix.pi-target.version }} | |
| run: pnpm run test:integration | |
| - name: Summarize compatibility target | |
| run: | | |
| { | |
| echo "## Integration compatibility target" | |
| echo | |
| echo "Resolved compatibility window: ${{ needs.resolve-pi-compat.outputs.pi-versions }}" | |
| echo "This job tested: Node ${{ matrix.node-version }}, pi ${{ matrix.pi-target.version }}" | |
| echo | |
| } >> "$GITHUB_STEP_SUMMARY" |