Create pr-validation.yml (#114)
This commit is contained in:
30
.github/workflows/pr-validation.yml
vendored
Normal file
30
.github/workflows/pr-validation.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user