Skip to content
Merged
Show file tree
Hide file tree
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
20 changes: 17 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,33 @@ jobs:
runs-on: ubuntu-latest
name: run eslint
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/checkout@v4.1.0
- uses: actions/setup-node@v3.8.1
with:
node-version-file: .node-version
cache: yarn
- name: lint check
- name: eslint check
run: |
yarn
yarn lint

prettier:
runs-on: ubuntu-latest
name: run prettier check
steps:
- uses: actions/checkout@v4.1.0
- uses: actions/setup-node@v3.8.1
with:
node-version-file: .node-version
cache: yarn
- name: prettier check
run: |
yarn
yarn lint:format

slack-notify:
if: always()
needs: [eslint]
needs: [eslint, prettier]
name: post slack
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint:format": "prettier --check --ignore-path .gitignore './**/*.{js,ts,tsx,json,css}'",
"format": "prettier --write --ignore-path .gitignore './**/*.{js,ts,tsx,json,css}'",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
Expand Down