From 642ba59b8ac1016b0221328a083aa0ad4feb0a97 Mon Sep 17 00:00:00 2001 From: Jack Boswell Date: Wed, 15 Jun 2022 17:30:19 +1200 Subject: [PATCH] Create pr-validation.yml (#114) --- .github/workflows/pr-validation.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pr-validation.yml diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml new file mode 100644 index 00000000..9f707c94 --- /dev/null +++ b/.github/workflows/pr-validation.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions + +name: PR Validation + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Set up NPM + run: npm ci + + # Runs a set of commands using the runners shell + - name: Run Build + run: npm run build + + - name: Run Tests + run: npm test