This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
add archive note #55
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
# ESLint and Prettier must be in `package.json` | |
- name: Install Node.js dependencies | |
run: yarn install --frozen-lockfile --silent | |
- name: Lint | |
uses: reviewdog/action-eslint@v1 | |
with: | |
reporter: github-pr-review # Change reporter. | |
eslint_flags: 'pages/ store/ components/ graphql/' | |
- name: Typecheck | |
uses: andoshin11/[email protected] | |