-
-
Notifications
You must be signed in to change notification settings - Fork 566
50 lines (42 loc) · 1020 Bytes
/
lint.yaml
File metadata and controls
50 lines (42 loc) · 1020 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Format check
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: ".node-version"
- name: yarn install
run: |
corepack enable
# try and avoid timeout errors
yarn config set httpTimeout 100000
yarn install --immutable
- name: check format
run: |
yarn prettier --check .
- name: run linter
run: |
yarn build:ts
yarn lint
spelling:
name: Spell Check with Typos
runs-on: ubuntu-latest
env:
CLICOLOR: 1
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- name: Spell Check Repo
uses: crate-ci/typos@v1