Merge pull request #1 from tabi-memo/front_setup #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Format | |
on: [push] | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.16.0' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install Node.js dependencies | |
run: | | |
pnpm i --frozen-lockfile | |
pnpm lint | |
pnpm format | |
- name: Use reviewdog eslint | |
uses: reviewdog/action-eslint@v1 | |
with: | |
reporter: github-check |