-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (30 loc) · 921 Bytes
/
lint-typescript.yml
File metadata and controls
38 lines (30 loc) · 921 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
37
38
# workflows/lint-typescript.yml
#
# Lint TypeScript
# Lint TypeScript files using Prettier.
name: Lint TypeScript
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "src/**/*.ts"
- "src/**/*.tsx"
- ".github/workflows/lint-typescript.yml"
workflow_dispatch:
concurrency:
group: lint-typescript-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint-typescript:
name: Lint TypeScript Files
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout Git Repository
uses: actions/checkout@v6
- name: Set up NodeJS Environment
uses: actions/setup-node@v6
- name: Install Prettier
run: npm install -g prettier
- name: Check Formatting on TypeScript Files
run: prettier --check "src/**/*.{ts,tsx}" --ignore-path .prettierignore