Skip to content

Merge pull request #129 from YIMSEBIN/Weekly #104

Merge pull request #129 from YIMSEBIN/Weekly

Merge pull request #129 from YIMSEBIN/Weekly #104

Workflow file for this run

name: Lint and Type Check
on:
pull_request:
# λͺ¨λ“  λΈŒλžœμΉ˜μ— λŒ€ν•΄ PR μ‹œ μ‹€ν–‰
branches:
- '**'
push:
# λͺ¨λ“  λΈŒλžœμΉ˜μ— λŒ€ν•΄ ν‘Έμ‹œ μ‹œ μ‹€ν–‰
branches:
- '**'
jobs:
lint:
name: Lint and Type Check
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
# Install dependencies
- name: Install dependencies
run: npm ci
# Run ESLint to check for linting errors
- name: Run ESLint
run: npm run lint
# Run Prettier to check formatting
- name: Run Prettier Check
run: npm run format -- --check
# Run TypeScript compiler to check for type errors
- name: Run TypeScript Check
run: npm run tsc