[FE] μ°¨λ± μ μ° λͺ¨λ¬μμ μμ μλ£ λ²νΌμ λλ₯Ό λ 보λ΄λ 2κ°μ apiμ μμλ₯Ό 보μ₯νκ³ λ³λμ΄ μμΌλ©΄ μμ²μ 보λ΄μ§ μλλ‘ ν¨ #197
Workflow file for this run
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: frontend-pull-request | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
branches: [main, fe-dev] | |
paths: | |
- 'client/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./client | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.15.1' | |
- name: Install dependencies | |
working-directory: ./client | |
run: npm install | |
- name: Run lint | |
working-directory: ./client | |
run: npm run lint | |
- name: Run test | |
working-directory: ./client | |
run: npm run test | |
- name: Cypress test | |
run: npm run dev & | |
env: | |
CI: true | |
- name: Wait for the server to start | |
run: sleep 3 | |
- name: Run Cypress tests | |
run: npm run cypress-run |