mirror of
https://github.com/openai/codex.git
synced 2026-02-01 22:47:52 +00:00
This updates the CI workflows for shell-tool-mcp to use the pnpm version from package.json and print it in the build for verification. I have read the CLA Document and I hereby sign the CLA
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
name: shell-tool-mcp CI
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "shell-tool-mcp/**"
|
|
- ".github/workflows/shell-tool-mcp-ci.yml"
|
|
- "pnpm-lock.yaml"
|
|
- "pnpm-workspace.yaml"
|
|
pull_request:
|
|
paths:
|
|
- "shell-tool-mcp/**"
|
|
- ".github/workflows/shell-tool-mcp-ci.yml"
|
|
- "pnpm-lock.yaml"
|
|
- "pnpm-workspace.yaml"
|
|
|
|
env:
|
|
NODE_VERSION: 22
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
run_install: false
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: "pnpm"
|
|
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
|
|
- name: Activate pnpm from package.json
|
|
run: corepack prepare --activate
|
|
|
|
- name: Verify pnpm version
|
|
run: pnpm --version
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Format check
|
|
run: pnpm --filter @openai/codex-shell-tool-mcp run format
|
|
|
|
- name: Run tests
|
|
run: pnpm --filter @openai/codex-shell-tool-mcp test
|
|
|
|
- name: Build
|
|
run: pnpm --filter @openai/codex-shell-tool-mcp run build
|