-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 941 Bytes
/
plugin-test.yml
File metadata and controls
36 lines (31 loc) · 941 Bytes
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
name: plugin-test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
name: plugin tests (${{ matrix.os }} / node ${{ matrix.node }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Run plugin tests
run: npm test
- name: Smoke test SessionStart Codex probe (no Codex expected)
shell: bash
run: |
set -e
out=$(echo '{"session_id":"ci-probe","cwd":"."}' \
| node plugin/develop/scripts/session-lifecycle-hook.mjs session-start 2>&1)
echo "$out"
echo "$out" | grep -q "Codex" || (echo "probe did not announce Codex status" && exit 1)