Build instruction artifacts to CLAUDE.md / AGENTS.md (#48 PR-1) #32
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # self-tests と repository checks を PR / push ごとに実行する。 | |
| # scripts は macOS 標準 Ruby 前提なので macOS runner を使う。 | |
| # 外部 dependency の install と secrets は不要。 | |
| name: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| self-tests: | |
| runs-on: macos-latest | |
| steps: | |
| # 外部 action は full commit SHA で pin する (タグ移動による差し替え対策)。 | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| # テストが repo 内の scripts を実行するため、token を .git/config に残さない。 | |
| persist-credentials: false | |
| - name: Run self-tests | |
| run: | | |
| for t in scripts/tests/*.sh; do | |
| echo "--- $t" | |
| "$t" | |
| done | |
| - name: Check repository assets | |
| run: | | |
| scripts/check-manifests.sh | |
| scripts/check-injection.sh | |
| - name: Build, register, and report status | |
| run: | | |
| scripts/build.sh | |
| scripts/register.sh | |
| scripts/status.sh --json | |
| scripts/doctor.sh |