Update README.md #7
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: Run Frontend Tests with Coverage | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: "16" # Specify the Node.js version you need | |
| - name: Install dependencies | |
| working-directory: ./frontend | |
| run: npm install | |
| - name: Run tests with coverage | |
| working-directory: ./frontend | |
| run: npm run test -- --coverage --verbose --ci --passWithNoTests | |
| - name: Upload coverage to Codecov | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # Store your Codecov token in GitHub secrets | |
| run: bash <(curl -s https://codecov.io/bash) -f frontend/coverage/**/lcov.info |