diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cdacf4f1..e77e9252 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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: diff --git a/package.json b/package.json index 2fd981b9..6008a800 100644 --- a/package.json +++ b/package.json @@ -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",