-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 1.08 KB
/
build.yml
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
32
33
34
35
36
37
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 i
npm start & npx wait-on http://localhost:8080
env:
MONGO_DBNAME: ${{secrets.MONGO_DBNAME}}
MONGO_HOSTS: ${{secrets.MONGO_HOSTS}}
MONGO_USERNAME: ${{secrets.MONGO_USERNAME}}
MONGO_PASSWORD: ${{secrets.MONGO_PASSWORD}}
MONGO_READ_PREFERENCE: ${{secrets.MONGO_READ_PREFERENCE}}
ELASTICSEARCH_NODE: ${{secrets.ELASTICSEARCH_NODE}}
ELASTIC_PASSWORD: ${{secrets.ELASTIC_PASSWORD}}
JWT_SECRET_KEY: ${{secrets.JWT_SECRET_KEY}}
PS_SCRIPT_PATH: $GITHUB_WORKSPACE/Backend/scripts/windows.ps1
SH_SCRIPT_PATH: $GITHUB_WORKSPACE/Backend/scripts/linux.sh