Tests and Coverage #1201
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
name: 'Tests and Coverage' | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
pull_request: | |
env: | |
REACT_APP_BACKEND_URL: ${{vars.REACT_APP_BACKEND_URL}} | |
REACT_APP_WS_URL: ${{vars.REACT_APP_WS_URL}} | |
jobs: | |
Tests_and_Coverage: | |
if: ${{ github.triggering_actor != 'dependabot[bot]' }} | |
permissions: | |
checks: write | |
pull-requests: write | |
contents: write | |
runs-on: ubuntu-latest | |
name: Tests and Coverage report | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install packages | |
run: npm install | |
- name: Launch coverage report | |
continue-on-error: true | |
run: npm test -- --watchAll=false --ci --json --coverage --testLocationInResults --outputFile=report.json | |
- uses: ArtiomTr/jest-coverage-report-action@v2 | |
with: | |
coverage-file: report.json | |
base-coverage-file: report.json |