PR시 린트검사 하도록 수정 #5
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: Prettier Check | |
on: | |
pull_request: | |
branches: | |
- main # 또는 기본 브랜치 이름 | |
- dev | |
jobs: | |
lint_build_Check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install dependencies #패키지 버전 체크 | |
run: npm ci | |
- name: Run ESLint #린트 체크 | |
run: npm run lint | |
- name: Run Build #빌드 체크 | |
run: npm run build |