-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 776 Bytes
/
lint.yaml
File metadata and controls
36 lines (29 loc) · 776 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
name: "lint"
on:
workflow_call:
pull_request_target:
branches: [main]
types: [opened, synchronize]
concurrency:
group: lint-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write
issues: write
pull-requests: write
jobs:
source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@cd2651c46231bc0d6f48d6b34433b845331235fe # v5.0.0
with:
node-version-file: "package.json"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run check
run: npm run lint