Run workflows on PRs + Perform test build

This commit is contained in:
Gabe Kangas
2022-09-03 11:35:46 -07:00
committed by GitHub
parent 888e31008a
commit 9f550a87d2
3 changed files with 34 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ on:
push:
paths:
- web/**
pull_request:
paths:
- web/**
# List of jobs
jobs:

View File

@@ -5,6 +5,9 @@ on:
push:
paths:
- web/**
pull_request:
paths:
- web/**
jobs:
prettier:

View File

@@ -0,0 +1,28 @@
name: Webapp Test Build
# This action works with pull requests and pushes
on:
push:
paths:
- web/**
pull_request:
paths:
- web/**
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
name: Build webapp
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build