-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (25 loc) · 756 Bytes
/
Copy patheslint.yml
File metadata and controls
31 lines (25 loc) · 756 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
name: Lint # name of the action (displayed in the github interface)
on: # event list
push:
branches:
- main
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: 18
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
- name: Code Linting
run: npm run lint