Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ESLint Check

# Pull Request가 실행될 때만 실행
on:
pull_request:
branches:
- main
- develop

jobs:
lint:
name: Run ESLint
runs-on: ubuntu-latest

steps:
# 1. 코드 체크아웃 -> 코드를 가져오기 위해 필요
- name: Checkout code
uses: actions/checkout@v3

# 2. Node.js 설정 -> js파일 린트를 위해 필요
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16

# 3. 의존성 설치 -> ESlint 실행 필요
- name: Install dependencies
run: npm install

# 4. ESLint 실행 -> 린트 실행!
- name: Run ESLint
run: npm run lint
Loading