More formatters #270
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: Tests | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x, 23.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Make scripts executable | |
| run: | | |
| chmod +x ./e2e/run-all-tests.sh | |
| chmod +x ./e2e/scenario-*/test.sh | |
| chmod +x ./e2e/scenario-*/setup.sh | |
| chmod +x ./e2e/scenario-*/teardown.sh | |
| chmod +x ./e2e/scenario-*/check.sh | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Build packages | |
| run: npm run build | |
| - name: Install PM2 globally | |
| run: npm install -g pm2 | |
| - name: Run unit tests | |
| run: npm test | |
| env: | |
| CI: true | |
| - name: Run integration tests | |
| run: npm run test:e2e -- --no-llm --verbose | |
| env: | |
| # All scenarios now use mockLLM mode and run without external API keys | |
| # The --no-llm flag skips any scenarios with a 'requires-llm' marker file | |
| CI: true | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-node-${{ matrix.node-version }} | |
| path: test-results.log |