Skip to content

Commit ddb5d80

Browse files
add linter and formatter gates (#22)
1 parent 70746be commit ddb5d80

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run ESLint check
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
run-eslint-check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up project
15+
uses: ./.github/actions/setup-project
16+
17+
- name: Run ESLint check
18+
run: yarn eslint .
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run Prettier check
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
run-prettier-check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up project
15+
uses: ./.github/actions/setup-project
16+
17+
- name: Run Prettier check
18+
run: yarn prettier --check .

0 commit comments

Comments
 (0)