Create CI for react app #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 | |
on: | |
push: | |
branches: | |
- main # Adjust this according to your main branch name | |
pull_request: | |
branches: | |
- main # Adjust this according to your main branch name | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: cd client | |
yarn install | |
- name: Build | |
run: cd cl,ient | |
yarn build |