would it work? #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: CI | |
on: | |
push: | |
branches: | |
- main | |
# Delete this line | |
- 39-setup-github-actions-for-repo | |
jobs: | |
build-deploy: | |
name: Build & Deploy | |
runs-on: [self-hosted] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Install Client Dependencies and Build Client | |
# TODO: add npm run lint | |
run: | | |
cd client | |
npm install | |
npm run build | |
- name: Install Server Dependencies and Start Server | |
run: | | |
npm install | |
npm run start | |
# start-server: | |
# name: Start Express Server | |
# runs-on: [self-hosted] | |
# | |
# steps: | |
# - name: Checkout Repository | |
# uses: actions/checkout@v2 | |
# | |
# - name: Install Dependencies and Start Server | |
# run: | | |
# npm install | |
# npm start |