Skip to content

Commit

Permalink
Edited incremental-cover-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SneakyTurtlle committed Dec 11, 2023
1 parent 6047c26 commit 703a435
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/incremental-cover-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Coverage check
on: [push, pull_request]
env:
UNITTEST: 1
jobs:
lint:
name: Code coverage
Expand All @@ -8,6 +10,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup PostgreSQL With Init Scripts
uses: m4nu56/postgresql-action@1.0
with:
postgresql db: scantron
postgresql user: scantron
postgresql password: scantron
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -46,6 +54,7 @@ jobs:
head_ref: HEAD
rep_ref: main
gh_token: ${{ secrets.GITHUB_TOKEN }}
pr_number: ${{github.event.pull_request.number}}
if: github.event_name == 'pull_request'

- name: Coverage check on push
Expand All @@ -58,3 +67,7 @@ jobs:
head_ref: HEAD
rep_ref: main
if: github.event_name == 'push'

- name: The job has failed
run: exit 1
if: ${{ failure() }}

0 comments on commit 703a435

Please sign in to comment.