24 lines
649 B
YAML
24 lines
649 B
YAML
name: Coverage Testing (Pull)
|
|
|
|
on: pull_request
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
Coverage:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- name: Install Application
|
|
run: |
|
|
npm ci
|
|
npm install -g mocha c8 cypress@10
|
|
- name: Copy Test Config
|
|
run: cp ./data/config.testing.js ./data/config.js
|
|
- name: Initialize Database
|
|
run: npm run init:cemetery:test
|
|
- name: Run Coverage Testing
|
|
run: c8 --reporter=lcov --reporter=text --reporter=text-summary mocha --timeout 10000 --exit |