Bump codecov/codecov-action from 4 to 5 #93
This file contains 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
# This workflow runs the tests for the application and submits coverage report information to CodeCov on every push and Pull Requests that were open. | |
# It uses the Action described here https://github.com/marketplace/actions/codecov. | |
name: Jest Tests & Coverage | |
on: [push, pull_request] | |
jobs: | |
coverage: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Respository | |
uses: actions/checkout@v4 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Run the tests # References https://about.codecov.io/blog/measuring-typescript-code-coverage-with-jest-and-github-actions/ | |
run: npm test -- --coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |