Skip to content

Commit

Permalink
chore: CI Workflow 파이프라인 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
toothlessdev committed May 10, 2024
1 parent 3e8d53b commit ec9b618
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Compile & Linting

on:
pull_request:
branches:
- dev
push:
branches:
- dev

env:
NODE_VERSION: 20

jobs:
compile:
runs-on: ubuntu-latest

steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{env.NODE_VERSION}}
- name: Code Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Typescript Compile
run: npm run compile

lint:
runs-on: ubuntu-latest
needs: compile

steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{env.NODE_VERSION}}
- name: Code Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Lint Code
run: npm run lint
- name: Format Code
run: npm run format
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"format": "prettier --write '**/*.{ts,tsx}'"
"format": "prettier --write '**/*.{ts,tsx}'",
"compile": "tsc"
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.4",
Expand Down
2 changes: 1 addition & 1 deletion src/common/navigation/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Pagination: React.FC = () => {
return (
<PaginationContainer>
<PageSkipButton onClick={handlePrevBtnClick}>{"<"}</PageSkipButton>
{Array.from({ length: perPage }, (v, k) => page + k).map((page) => {
{Array.from({ length: perPage }, (_, k) => page + k).map((page) => {
return (
<PageButton active={page === currentPage} onClick={handlePageBtnClick}>
{page}
Expand Down

0 comments on commit ec9b618

Please sign in to comment.