Merge pull request #61 from Haseebx162006/feature/go-live-streaming #4
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: DevStream CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Define the Node.js versions to test against | |
| node-version: [20, 22, 24] | |
| # Continue running other versions even if one fails | |
| fail-fast: false | |
| steps: | |
| - name: Checkout Repository | |
| 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 | |
| # Note: npm ci requires package-lock.json to be committed. | |
| # If package-lock.json is in .gitignore, change this to: npm install | |
| run: npm ci | |
| - name: Lint & Format Check | |
| run: npm run lint:ci | |
| - name: Run Tests | |
| run: npm run test:run | |
| - name: Generate Coverage Report | |
| run: npm run test:coverage | |
| continue-on-error: true | |
| - name: Build Project | |
| run: npm run build |