Merge pull request #612 from woowacourse-teams/feat/611-update-infras… #1
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: Client Test | |
on: | |
push: | |
branches: [main, dev] | |
paths: client/** | |
pull_request: | |
branches: [main, dev] | |
paths: client/** | |
jobs: | |
deploy: | |
defaults: | |
run: | |
working-directory: client | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
steps: | |
- name: Use repository source | |
uses: actions/checkout@v3 | |
- name: Use node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
uses: cypress-io/github-action@v5 | |
with: | |
working-directory: client | |
install-command: yarn --frozen-lockfile | |
parallel: true | |
build: yarn build | |
start: yarn start | |
wait-on: 'http://localhost:3000' | |
command: yarn cypress:run |