fix(hooks): prevent circuit breaker false positives on deliberate rol… #267
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: CI Install Tests | |
| on: | |
| push: | |
| branches: [main, staging] | |
| paths: | |
| - 'bin/install.js' | |
| - 'hooks/dist/**' | |
| - 'commands/**' | |
| - 'agents/**' | |
| - 'core/**' | |
| - 'test/install-virgin.test.cjs' | |
| - '.github/workflows/ci-install.yml' | |
| pull_request: | |
| branches: [main, staging] | |
| paths: | |
| - 'bin/install.js' | |
| - 'hooks/dist/**' | |
| - 'commands/**' | |
| - 'agents/**' | |
| - 'core/**' | |
| - 'test/install-virgin.test.cjs' | |
| - '.github/workflows/ci-install.yml' | |
| jobs: | |
| install-test: | |
| name: Install (${{ matrix.os }}, Node ${{ matrix.node }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| node: ['18', '20', '22'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install dependencies | |
| run: npm ci || npm install | |
| - name: Build hooks | |
| run: npm run build:hooks | |
| - name: Run install tests | |
| run: node --test test/install-virgin.test.cjs |