Skip to content

change coverage commands to jest #134

change coverage commands to jest

change coverage commands to jest #134

Workflow file for this run

# Workflow to codecov
name: Run codecov
# Runs on push to any branch
on:
push:
pull_request:
branches:
- master
# Workflow can be triggered manually from the Actions tab
workflow_dispatch:
jobs:
# Run tests
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- uses: actions/setup-node@v1
name: Set up with Node 16
with:
node-version: '16.x'
- name: Install CI dependencies
run: npm ci
- name: Run unit tests with code coverage
run: npm run coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
timeout-minutes: 1