-
-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (26 loc) · 709 Bytes
/
lint.yml
File metadata and controls
28 lines (26 loc) · 709 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
name: Lint Code
on:
pull_request:
types: [ready_for_review, opened, synchronize, reopened]
paths:
- '**/*.ts'
branches:
- main
- 'release/*'
jobs:
eslint:
timeout-minutes: 10
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: ESLint
run: node node_modules/.bin/eslint . --ext .ts