Skip to content

Tests and Coverage #1199

Tests and Coverage

Tests and Coverage #1199

Workflow file for this run

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