From b52e6bfb8112a3d3b09b42335460f2df2f93353d Mon Sep 17 00:00:00 2001 From: js07 <19861096+js07@users.noreply.github.com> Date: Mon, 8 Nov 2021 16:24:38 -0500 Subject: [PATCH] Add GitHub action to run jest on PRs --- .github/workflows/pull-request-checks.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pull-request-checks.yaml diff --git a/.github/workflows/pull-request-checks.yaml b/.github/workflows/pull-request-checks.yaml new file mode 100644 index 0000000..a6e256a --- /dev/null +++ b/.github/workflows/pull-request-checks.yaml @@ -0,0 +1,22 @@ +name: Pull Request Checks + +on: + pull_request: + branches: [ master ] + +jobs: + test: + name: Run Tests + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 14.x + uses: actions/setup-node@v2 + with: + node-version: 14.x + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test