-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
59 lines (50 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
smoke-claude-code:
name: Claude Code smoke test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install Claude Code CLI
run: npm install -g @anthropic-ai/claude-code
- name: Validate plugin layout against Claude Code (offline)
run: claude plugin validate ./
smoke-codex:
name: Codex smoke test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
# Codex requires Node 22+; Claude Code requires 18+. Both run on 22.
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install Codex CLI
run: npm install -g @openai/codex
# Codex plugin subcommands are local file ops — no auth/network. `plugin add`
# drives resolve_plugin_source_path (openai/codex#17066): it exits non-zero
# if the marketplace source.path ever regresses to the blocked repo root ("./").
# `plugin list` exits 0 even when a plugin is "not installed", so we don't
# rely on its exit code — we assert the plugin shows up installed + enabled.
- name: Validate plugin layout against Codex (offline, no auth)
env:
CODEX_HOME: ${{ runner.temp }}/codex-home
run: |
set -euo pipefail
mkdir -p "$CODEX_HOME"
codex plugin marketplace add ./
codex plugin add commercetools@commercetools
codex plugin list | tee codex-plugin-list.txt
if ! grep -E 'commercetools@commercetools' codex-plugin-list.txt | grep -q 'installed, enabled'; then
echo "::error::Codex did not report commercetools@commercetools as installed + enabled"
exit 1
fi
rm -f codex-plugin-list.txt