Update README.md #564
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |