-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 899 Bytes
/
lint.yml
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
# .github/workflows/lint.yml
name: Code health checks # name of the action (displayed in the github interface)
on: # event list
pull_request: # on a pull request to each of these branches
branches:
- main
env: # environment variables (available in any part of the action)
NODE_VERSION: 20
jobs: # list of things to do
linting:
name: Linting # job name (unique id)
runs-on: ubuntu-latest # on which machine to run
steps: # list of steps
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Code Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: yarn install
- name: Type Checking
run: yarn typecheck
- name: Code Linting
run: yarn eslint:check
- name: Code Formatting
run: yarn prettier:check