Merge pull request #487 from masterchief-Dave/feature/api-get-org-roles #2
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, Test, and Deploy for Dev Branch | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: self-hosted | |
defaults: | |
run: | |
working-directory: /var/www/aihomework/dev | |
steps: | |
- name: Pull from github | |
id: pull | |
run: | | |
git stash | |
git pull origin dev | |
- name: install dependencies | |
run: yarn install | |
- name: Run Test | |
run: yarn test | |
- name: buld the dist | |
run: yarn build | |
- name: migrate | |
run: yarn reset-db | |
- name: setup service file | |
run: sudo cp server-script/aihomeworkdev.service /etc/systemd/system | |
- name: start the app | |
run: | | |
sudo systemctl daemon-reload | |
sudo systemctl restart aihomeworkdev |