[Refactor] Fixed nitty gritty details #4
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: 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}} |