Repository navigation
chore: try2 #149
Workflow file for this run
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: Testing | |
| on: push | |
| jobs: | |
| testing: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Copy project to machine | |
| uses: actions/checkout@v3 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node: 22 | |
| - name: Restore node_modules | |
| id: restore-node-modules | |
| uses: actions/cache/restore@v3 | |
| with: | |
| path: node_modules | |
| key: cache-${{ hashFiles('package-lock.json') }} | |
| - name: Install dependencies | |
| if: steps.restore-node-modules.outputs.cache-hit != 'true' | |
| run: npm install | |
| - name: Cache node_modules | |
| if: steps.restore-node-modules.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v3 | |
| with: | |
| path: node_modules | |
| key: ${{ steps.restore-node-modules.outputs.cache-primary-key }} | |
| - name: Run lint | |
| run: npm run lint | |
| - name: Run testing with coverage | |
| run: npm run cov | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v3 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |