chore(deps): bump inquirer from 12.10.0 to 13.0.2 #41
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test on Node ${{ matrix.node-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18, 20, 22] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run unit tests | |
| run: npm test | |
| - name: Test all commands | |
| run: | | |
| echo "Testing core commands..." | |
| node src/index.js "feat: test message" | |
| node src/index.js lint "feat: test message" | |
| node src/index.js suggest "fix bug" | |
| node src/index.js fix "fix bug" | |
| echo "Testing analysis commands..." | |
| node src/index.js doctor | |
| node src/index.js scan --count 5 | |
| node src/index.js benchmark | |
| node src/index.js report | |
| node src/index.js stats | |
| node src/index.js history --count 5 | |
| node src/index.js validate --count 5 | |
| node src/index.js search "test" --count 5 | |
| echo "Testing config commands..." | |
| node src/index.js check | |
| node src/index.js config | |
| node src/index.js template --type feat | |
| node src/index.js help | |
| - name: Check package vulnerabilities | |
| run: npm audit --audit-level=high | |
| lint: | |
| name: Lint and Security | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check code style | |
| run: 'node src/index.js lint "feat: example commit message"' | |
| - name: Security audit | |
| run: npm audit --audit-level=moderate | |
| continue-on-error: true | |