chore: homogenize CI workflow with Vue stack #1865
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: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x, 24.x] | |
| mongodb-version: ['7.0'] | |
| 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: Start Mongo ${{ matrix.mongodb-version }} | |
| uses: supercharge/mongodb-github-action@1.12.1 | |
| with: | |
| mongodb-version: ${{ matrix.mongodb-version }} | |
| - name: Run tests | |
| run: | | |
| npm install | |
| npm run lint | |
| npm run test:coverage | |
| - name: Upload coverage reports to Codecov | |
| if: matrix.node-version == '22.x' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |