Merge pull request #57 from lanphgphm/master #133
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: Deploy | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
- name: Set up Node js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.10.0' | |
- name: Install | |
run: yarn | |
- name: Lint | |
run: yarn lint | |
- name: Jest (unit test) | |
run: yarn jest | |
- name: Cypress (integration test) | |
uses: cypress-io/github-action@v2 | |
with: | |
build: yarn build | |
start: yarn start | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: build # The folder the action should deploy. |