diff --git a/.github/workflows/incremental-cover-check.yml b/.github/workflows/incremental-cover-check.yml index 07fb0577..b1dcf8cc 100644 --- a/.github/workflows/incremental-cover-check.yml +++ b/.github/workflows/incremental-cover-check.yml @@ -1,5 +1,7 @@ name: Coverage check on: [push, pull_request] +env: + UNITTEST: 1 jobs: lint: name: Code coverage @@ -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: @@ -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 @@ -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() }}