Skip to content

fix(ci): correct smoke-codex assertion — AGENTS.md is expected #66

fix(ci): correct smoke-codex assertion — AGENTS.md is expected

fix(ci): correct smoke-codex assertion — AGENTS.md is expected #66

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
- run: npm run verify:skills
- run: npm run packs:check
- run: npm run packs:vendor:sync -- --check
- run: node skills/tools/verify-change/scripts/change_analyzer.js --mode staged || node skills/tools/verify-change/scripts/change_analyzer.js --mode working
- run: node skills/tools/verify-module/scripts/module_scanner.js .
- run: node skills/tools/verify-quality/scripts/quality_checker.js .
- run: node skills/tools/verify-security/scripts/security_scanner.js .
smoke-claude:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Pack npm tarball
shell: bash
run: npm pack
- name: Smoke install/uninstall Claude target
shell: bash
run: |
set -euo pipefail
pkg_tgz="$(ls code-abyss-*.tgz | head -n 1)"
abyss_home="$RUNNER_TEMP/abyss-home"
rm -rf "$abyss_home"
mkdir -p "$abyss_home"
export HOME="$abyss_home"
export USERPROFILE="$abyss_home"
export CODE_ABYSS_GSTACK_SOURCE="$GITHUB_WORKSPACE/test/fixtures/gstack-codex-source"
npx --yes --package "./$pkg_tgz" code-abyss --target claude -y
test -f "$abyss_home/.claude/CLAUDE.md"
test -d "$abyss_home/.claude/skills"
test -d "$abyss_home/.claude/skills/gstack/review"
test -d "$abyss_home/.claude/commands"
test -f "$abyss_home/.claude/commands/gen-docs.md"
test -f "$abyss_home/.claude/commands/review.md"
test -f "$abyss_home/.claude/settings.json"
test -f "$abyss_home/.claude/.sage-uninstall.js"
npx --yes --package "./$pkg_tgz" code-abyss --uninstall claude
test ! -e "$abyss_home/.claude/CLAUDE.md"
test ! -e "$abyss_home/.claude/skills"
test ! -e "$abyss_home/.claude/.sage-backup"
smoke-codex:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Pack npm tarball
shell: bash
run: npm pack
- name: Smoke install/uninstall Codex target
shell: bash
run: |
set -euo pipefail
pkg_tgz="$(ls code-abyss-*.tgz | head -n 1)"
abyss_home="$RUNNER_TEMP/abyss-home"
rm -rf "$abyss_home"
mkdir -p "$abyss_home"
export HOME="$abyss_home"
export USERPROFILE="$abyss_home"
export CODE_ABYSS_GSTACK_SOURCE="$GITHUB_WORKSPACE/test/fixtures/gstack-codex-source"
npx --yes --package "./$pkg_tgz" code-abyss --target codex -y
test -f "$abyss_home/.codex/AGENTS.md"
test -d "$abyss_home/.agents/skills"
test -d "$abyss_home/.agents/bin/lib"
test -f "$abyss_home/.agents/skills/gstack/review/SKILL.md"
test -f "$abyss_home/.codex/config.toml"
test ! -e "$abyss_home/.codex/settings.json"
test -f "$abyss_home/.codex/.sage-uninstall.js"
npx --yes --package "./$pkg_tgz" code-abyss --uninstall codex
test ! -e "$abyss_home/.codex/AGENTS.md"
test ! -e "$abyss_home/.agents/skills"
test ! -e "$abyss_home/.codex/.sage-backup"
smoke-gemini:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Pack npm tarball
shell: bash
run: npm pack
- name: Smoke install/uninstall Gemini target
shell: bash
run: |
set -euo pipefail
pkg_tgz="$(ls code-abyss-*.tgz | head -n 1)"
abyss_home="$RUNNER_TEMP/abyss-home"
rm -rf "$abyss_home"
mkdir -p "$abyss_home"
export HOME="$abyss_home"
export USERPROFILE="$abyss_home"
export CODE_ABYSS_GSTACK_SOURCE="$GITHUB_WORKSPACE/test/fixtures/gstack-codex-source"
npx --yes --package "./$pkg_tgz" code-abyss --target gemini -y
test -f "$abyss_home/.gemini/GEMINI.md"
test -d "$abyss_home/.gemini/skills"
test -d "$abyss_home/.gemini/commands"
test -f "$abyss_home/.gemini/commands/gen-docs.toml"
test -f "$abyss_home/.gemini/commands/review.toml"
test -d "$abyss_home/.gemini/skills/gstack/review"
test -f "$abyss_home/.gemini/settings.json"
test -f "$abyss_home/.gemini/.sage-uninstall.js"
npx --yes --package "./$pkg_tgz" code-abyss --uninstall gemini
test ! -e "$abyss_home/.gemini/GEMINI.md"
test ! -e "$abyss_home/.gemini/skills"
test ! -e "$abyss_home/.gemini/.sage-backup"