attempt to sort out pull request checks

deepsource-autofix-76c6eb20
Dan Gowans 2022-09-26 08:54:47 -04:00
parent cbcec61aa9
commit 6951508575
2 changed files with 4 additions and 26 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
name: Coverage Testing name: Coverage Testing
on: [workflow_dispatch, push] on: [workflow_dispatch, push, pull_request]
permissions: read-all permissions: read-all
@ -32,7 +32,9 @@ jobs:
./codeclimate-test-reporter after-build -t lcov --exit-code $? ./codeclimate-test-reporter after-build -t lcov --exit-code $?
env: env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
if: github.event_name != 'pull_request'
- name: Codacy - name: Codacy
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info
env: env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
if: github.event_name != 'pull_request'