Skip to content

Commit

Permalink
Fix build, add workflow for test building on commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Feb 22, 2024
1 parent 90813a0 commit 592f19d
Show file tree
Hide file tree
Showing 5 changed files with 2,928 additions and 469 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/on_commit_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test building EMS

on:
push:
branches:
- "*"
workflow_dispatch:

jobs:
build-frontend:
name: Build Frontend
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install lib dependencies
run: |
npm run install:lib
- name: Build libs
run: |
npm run build:lib
- name: Install frontend dependencies
run: |
npm run install:frontend
- name: Build frontend
run: |
npm run build:frontend
build-backend:
name: Build Backend
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install lib dependencies
run: |
npm run install:lib
- name: Build libs
run: |
npm run build:lib
- name: Install backend dependencies
run: |
npm run install:backend
- name: Build backend
run: |
npm run build:backend
Loading

0 comments on commit 592f19d

Please sign in to comment.