fix(autopilot): 軽量 worktree に prepare 生成物を用意し dev server 起動エラーを解消 (#1001) #159
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
| name: Test autopilot | |
| # tools/autopilot/ は packages とは独立した開発ツール(依存なし・node:test)。 | |
| # 変更時にだけ tools/autopilot/test/ を実行する。packages の CI/CD (ci-cd.yml) は | |
| # paths-ignore で tools/** を除外しているため、ここで個別にテストする。 | |
| on: | |
| pull_request: | |
| paths: | |
| - 'tools/autopilot/**' | |
| - '.github/workflows/test-autopilot.yml' | |
| push: | |
| branches: [main, master, develop, hotfix/*] | |
| paths: | |
| - 'tools/autopilot/**' | |
| - '.github/workflows/test-autopilot.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test tools/autopilot | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| # 依存パッケージは無い(Node 標準の node:test のみ)。install しない。 | |
| - name: Run unit tests | |
| working-directory: tools/autopilot | |
| run: node --test |