Merge pull request #27 from a-25/bump_version_012 #67
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: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run linter (if configured) | |
| run: npm run lint || echo "Linter not configured, skipping..." | |
| continue-on-error: true | |
| - name: Build project | |
| run: npm run build | |
| - name: Run tests with coverage | |
| run: | | |
| echo "=== Running tests with coverage ===" | |
| npm run test:coverage | |
| echo "" | |
| echo "✅ Test coverage report completed" | |
| - name: Verify server starts | |
| run: | | |
| timeout 10s npm start & | |
| sleep 5 | |
| echo "Server start verification completed" |