Skip to content

Commit eb30fb0

Browse files
committed
Add workflow to check formatting
1 parent 8e684d1 commit eb30fb0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/format.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Format
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
types: [opened, synchronize]
7+
jobs:
8+
format:
9+
name: Check formatting
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the repository
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '14'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Check formatting
24+
run: npm run format:check

0 commit comments

Comments
 (0)