Add action to find PR number

This commit is contained in:
Andrew Shumway
2023-05-02 09:16:40 -06:00
parent a3b18070ae
commit 15f3f261fb

View File

@@ -7,6 +7,9 @@ on:
pull_request_target:
types:
- opened
permissions:
pull-requests: write
contents: write
env:
NOTIFY_ENVIRONMENT: test
@@ -23,9 +26,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-project
- uses: jwalton/gh-find-current-pr@v1
id: findPr
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: npm test
prnumber: ${{ steps.findPr.outputs.number }}
- name: Run style checks
run: pipenv run flake8 .
- name: Check imports alphabetized