-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (41 loc) · 1.22 KB
/
develop-deploy.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Continuous Intergration (CI)
on:
push:
branches:
- '*'
jobs:
build:
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Temporary .env
run: |
touch .env
echo ${{ secrets.ENV_FILE }} >> .env
- name: Cache Dependencies
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Install Frontend Dependencies
run: npm install
working-directory: frontend
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Run Unit Tests
run: ng test --watch=false --browsers=ChromeHeadless
working-directory: frontend
- name: Install Backend Dependencies
run: npm install
working-directory: backend
- name: Start Backend
run: npm run build
working-directory: backend
- name: Run Integration Tests
run: npm test
working-directory: backend
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}