Skip to content

Commit

Permalink
Merge pull request #19 from eresearchqut/build_workflow
Browse files Browse the repository at this point in the history
[ERP-2718] Add build workflow
  • Loading branch information
ppettitau authored Oct 15, 2024
2 parents cfdb576 + 74e43e5 commit 32848b1
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install api dependencies
working-directory: api
run: npm install
- name: Build api package
working-directory: api
run: npm run build
- name: Run api tests
working-directory: api
run: npm run test
- name: Install deployment dependencies
working-directory: deployment
run: npm install
- name: Build deployment package
working-directory: deployment
run: npm run build
- name: Install frontend dependencies
working-directory: frontend
run: yarn install
- name: Build frontend package
working-directory: frontend
run: yarn build
- name: Install serve dependencies
working-directory: serve
run: npm install
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Deploy CDK Stack
on:
push:
workflow_run:
workflows:
- build
branches:
- dev
- qa
- prod
types:
- completed
jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 32848b1

Please sign in to comment.