-
Notifications
You must be signed in to change notification settings - Fork 53
47 lines (40 loc) · 1.2 KB
/
lint-ts.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
37
38
39
40
41
42
43
44
45
46
47
name: lint-ts
on:
push:
branches:
- main
- "v[0-9]+.[0-9]+*"
- "release-[0-9]+.[0-9]+*"
paths:
- benchmarks/node/**
- node/**
- benchmarks/utilities/*
- .github/workflows/lint-ts.yml
pull_request:
paths:
- benchmarks/node/**
- node/**
- benchmarks/utilities/*
- .github/workflows/lint-ts.yml
workflow_dispatch:
concurrency:
group: node-lint-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
npm install
- name: Run linting and prettier
run: |
for folder in node benchmarks/node benchmarks/utilities; do
npx eslint ${{ github.workspace }}/$folder -c ${{ github.workspace }}/eslint.config.mjs
npx prettier --check ${{ github.workspace }}/$folder
done