Skip to content

Commit 654e752

Browse files
committed
CI: Add formatting check
1 parent f30d112 commit 654e752

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: CI
33
on: push
44

55
jobs:
6-
deploy:
6+
test-python:
7+
name: Test (Python)
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v3
@@ -14,3 +15,15 @@ jobs:
1415
cache: poetry
1516
- run: poetry install
1617
- run: poetry run black --check .
18+
19+
test-js:
20+
name: Test (JavaScript)
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
with:
26+
node-version: '20.x'
27+
cache: yarn
28+
- run: yarn
29+
- run: yarn lint

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"prettier": "3.0.2"
1212
},
1313
"scripts": {
14-
"format": "yarn prettier prose/static/prose --write"
14+
"prettier:base": "yarn prettier prose/static/prose",
15+
"lint": "yarn prettier:base --check",
16+
"format": "yarn prettier:base --write"
1517
}
1618
}

0 commit comments

Comments
 (0)