-
Notifications
You must be signed in to change notification settings - Fork 130
35 lines (27 loc) · 772 Bytes
/
lint.yml
File metadata and controls
35 lines (27 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Lint
on: pull_request
jobs:
lint-check:
name: Check for ESLint + Prettier Violations
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: node_modules cache
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install dependencies
run: |
yarn install --frozen-lockfile --network-timeout 300000
- name: Prettier check
run: |
yarn run lint:prettier
- name: Eslint check
run: |
yarn run lint:eslint