Create pr-validation.yml (#114)

This commit is contained in:
Jack Boswell
2022-06-15 17:30:19 +12:00
committed by GitHub
parent dd8dcab872
commit 642ba59b8a

30
.github/workflows/pr-validation.yml vendored Normal file
View File

@@ -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