Skip to content

Add test coverage report to README.md and Github actions #239

Add test coverage report to README.md and Github actions

Add test coverage report to README.md and Github actions #239

Workflow file for this run

name: 'tests'
on:
pull_request:
push:
branches: [develop]
jobs:
build:
runs-on: 'ubuntu-latest'
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '16'
- name: 'Checkout Project'
uses: 'actions/checkout@v3'
with:
fetch-depth: 1
- name: Install dependencies
run: yarn install --no-progress
- name: Lint code
run: yarn lint
- name: Run unit tests
run: yarn test
- name: Check if JSON conversions changed by running tests
run: git diff --exit-code "src/data/*.json"
- name: Generate production files
run: yarn build