Skip to content

Commit 7923b51

Browse files
committed
add formatting/linting to ci
1 parent 754ebc9 commit 7923b51

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Format and Lint
2+
on:
3+
push:
4+
pull_request:
5+
branches: [ main ]
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8+
cancel-in-progress: true
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18]
15+
steps:
16+
- name: Check out branch (pull request)
17+
uses: actions/checkout@v3
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: Install packages
23+
run: npm ci
24+
- name: Check Formatting with Prettier
25+
run: npx prettier --check .
26+
- name: Lint with ESLint
27+
run: npx eslint .

0 commit comments

Comments
 (0)