-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 779 Bytes
/
build.yml
File metadata and controls
31 lines (28 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12
- name: Front End Build Test
working-directory: ./frontend
run: |
npm i
npm run build
- name: Backend Run Test
working-directory: ./backend
run: |
npm ci
npm start & npx wait-on http://localhost:8080
env:
DB_CONNECTION_STRING: ${{secrets.DB_CONNECTION_STRING}}
JWT_SECRET_TOKEN: ${{secrets.JWT_SECRET_TOKEN}}
SENDGRID_API_KEY: ${{secrets.SENDGRID_API_KEY}}
HOST: ${{secrets.HOST}}
NODE_ENV: ${{secrets.NODE_ENV}}