fix(middleware-code-coverage): Drop Express coupling #1353
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: GitHub CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| checks: | |
| name: Linting, dependency check and unit tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js LTS 22 | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check Node.js engine compatibility | |
| run: npm run check-engine | |
| - name: Perfrom ESLint check | |
| run: npm run lint | |
| - name: Validate current commit (last commit) with commitlint | |
| if: github.event_name == 'push' | |
| run: npm run lint:commit -- --last --verbose | |
| - name: Validate PR commits with commitlint | |
| if: github.event_name == 'pull_request' | |
| run: npm run lint:commit -- --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
| - name: Perfrom Licenses check | |
| run: npm run check-licenses | |
| - name: Perform dependency check | |
| run: npm run knip | |
| - name: Run unit tests | |
| run: npm run test:unit:coverage | |
| - name: Send report to Coveralls for package @ui5/middleware-code-coverage | |
| uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8 | |
| continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down) | |
| with: | |
| flag-name: middleware-code-coverage | |
| base-path: ./packages/middleware-code-coverage | |
| file: ./packages/middleware-code-coverage/coverage/lcov.info |