From 6951508575d8835779f850110b9556404787402d Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Mon, 26 Sep 2022 08:54:47 -0400 Subject: [PATCH] attempt to sort out pull request checks --- .github/workflows/coverage-pull.yml | 24 ------------------------ .github/workflows/coverage.yml | 6 ++++-- 2 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/coverage-pull.yml diff --git a/.github/workflows/coverage-pull.yml b/.github/workflows/coverage-pull.yml deleted file mode 100644 index 74ac095b..00000000 --- a/.github/workflows/coverage-pull.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7877195f..df9899f9 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 }} \ No newline at end of file + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} + if: github.event_name != 'pull_request' \ No newline at end of file