add tag #195
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: 'TestsWithCoverage' | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| if: "!contains(github.event.head_commit.message, 'skip ci')" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: npm install | |
| working-directory: react | |
| - name: Audit | |
| run: npm run audit | |
| working-directory: react | |
| - name: ESLint | |
| run: npm run lint | |
| working-directory: react | |
| - name: Start server and run all tests with coverage | |
| run: npm start & sleep 60; npm run test:CI | |
| working-directory: react | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./react/coverage/coverage-final.json | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps | |
| working-directory: react | |
| - name: Run Playwright tests | |
| run: npx playwright test | |
| working-directory: react | |
| - name: Upload Playwright report | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: ./react/playwright-report/ |