add github actions (#83)

This commit is contained in:
Michael Pilosov 2024-07-02 06:53:41 -06:00 committed by GitHub
parent 1db1c04c41
commit dff8c5620a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

32
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Build Check
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run build
run: npm run build
- name: Check for production build
run: test -f build/index.html