-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathlint.yml
More file actions
30 lines (24 loc) · 691 Bytes
/
lint.yml
File metadata and controls
30 lines (24 loc) · 691 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
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
# We want to ensure that the Node.js version running here respects our supported versions
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Lint
run: node --run lint && node --run format