Files
chainbase-labs__agentkey/.github/workflows/scripts-test.yml
T
zzAllenn 8e93c67a33 fix(installer): avoid PromptScript failure for DSH (#97)
## Summary

- install the AgentKey Skill through the Skills CLI universal target for
DSH-only installs
- avoid passing either dsh or the unsupported global PromptScript target
while preserving explicit mixed-agent targets
- update Bash, PowerShell, English/Chinese setup guidance, retry
instructions, and release-asset source docs
- add Bash mixed-target coverage and a Windows PowerShell invocation
regression

## Root cause

skills@1.5.23 -g -y adds PromptScript to its universal target set even
though PromptScript has no global install directory. The canonical
AgentKey Skill still installs, but the command prints Failed to install
1. Explicitly targeting universal writes the same
~/.agents/skills/agentkey copy without selecting PromptScript.

## Validation

- bats tests/ — 42/42
- bash -n scripts/install.sh
- bash -n scripts/uninstall.sh
- bash -n scripts/build-release-assets.sh
- scripts/build-release-assets.sh with an isolated output directory
- workflow YAML parse
- git diff --check
- Windows behavior regression added to the windows-latest Scripts tests
job

## Deployment follow-up

Merging/releasing this PR does not automatically update
agentkey.app/install.sh. After release, publish the current
Bash/PowerShell install and uninstall scripts to the website origin and
purge the CDN; the live endpoints were serving stale pre-DSH content
during verification.

Co-authored-by: Allen <0xfatdog@gmail.com>
2026-08-25 00:55:26 +08:00

63 lines
1.7 KiB
YAML

name: Scripts tests
on:
push:
paths:
- 'skills/agentkey/scripts/**'
- 'scripts/build-release-assets.sh'
- 'skills/agentkey/SKILL.md'
- 'skills/agentkey/references/setup.md'
- 'gemini-extension.json'
- 'plugin.json'
- 'mcp_config.json'
- '.mcp.json'
- '.claude-plugin/plugin.json'
- 'README.md'
- 'docs/README_zh.md'
- 'tests/**'
- '.github/workflows/release-please.yml'
- '.github/workflows/scripts-test.yml'
pull_request:
paths:
- 'skills/agentkey/scripts/**'
- 'scripts/build-release-assets.sh'
- 'skills/agentkey/SKILL.md'
- 'skills/agentkey/references/setup.md'
- 'gemini-extension.json'
- 'plugin.json'
- 'mcp_config.json'
- '.mcp.json'
- '.claude-plugin/plugin.json'
- 'README.md'
- 'docs/README_zh.md'
- 'tests/**'
- '.github/workflows/release-please.yml'
- '.github/workflows/scripts-test.yml'
jobs:
bats:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install bats
run: |
if [ "$RUNNER_OS" = "macOS" ]; then
brew install bats-core
else
sudo apt-get update && sudo apt-get install -y bats
fi
- run: bats tests/
dsh-powershell:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Use the universal target for DSH-only global installs
shell: pwsh
run: ./tests/dsh-install-target.ps1
- name: Preserve indented DSH block-scalar markers
shell: pwsh
run: ./tests/dsh-uninstall-marker.ps1