Add frontend build workflow

This commit is contained in:
Reckless_Satoshi 2022-07-13 14:00:17 -07:00
parent a7cb34e55f
commit 0e2398f85f
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,4 @@
name: Frontend Tests
name: Frontend Test & Build
on:
workflow_dispatch:
@ -20,8 +20,6 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
env:
DEVELOPMENT: 1
steps:
- name: 'Checkout'
@ -35,8 +33,17 @@ jobs:
- name: 'Install NPM Dependencies'
run: |
cd frontend
npm install
- name: 'Tests'
npm ci
- name: 'Test'
run: |
cd frontend
npm test
- name: 'Build'
run: |
cd frontend
npm run build
- name: 'Archive Built Results'
uses: actions/upload-artifact@v3
with:
name: main-js
path: frontend/static/frontend/main.js