attempt to sort out pull request checks
parent
cbcec61aa9
commit
6951508575
|
|
@ -1,24 +0,0 @@
|
|||
name: Coverage Testing (Pull)
|
||||
|
||||
on: pull_request
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
Coverage:
|
||||
runs-on: ubuntu-20.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
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
name: Coverage Testing
|
||||
|
||||
on: [workflow_dispatch, push]
|
||||
on: [workflow_dispatch, push, pull_request]
|
||||
|
||||
permissions: read-all
|
||||
|
||||
|
|
@ -32,7 +32,9 @@ jobs:
|
|||
./codeclimate-test-reporter after-build -t lcov --exit-code $?
|
||||
env:
|
||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
if: github.event_name != 'pull_request'
|
||||
- name: Codacy
|
||||
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info
|
||||
env:
|
||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
if: github.event_name != 'pull_request'
|
||||
Loading…
Reference in New Issue