Skip to content

Commit 5804c4c

Browse files
committed
Add JavaScript check
1 parent f7a2923 commit 5804c4c

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.github/workflows/test-docs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
pull_request:
88
branches:
99
- main
10-
schedule:
11-
- cron: "0 0 * * *"
1210

1311
jobs:
1412
docs:

.github/workflows/test-javascript.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
source:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: oven-sh/setup-bun@v2
17+
with:
18+
bun-version: latest
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.x
22+
- name: Install Python Dependencies
23+
run: pip install --upgrade pip hatch uv
24+
- name: Run Tests
25+
run: hatch run javascript:check

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ deploy_latest = ["cd docs && mike deploy --push --update-aliases {args} latest"]
129129
deploy_develop = ["cd docs && mike deploy --push develop"]
130130
check_examples = ["ruff check docs/examples/python"]
131131

132+
# >>> Hatch JS Scripts <<<
133+
[tool.hatch.envs.javascript]
134+
detached = true
135+
136+
[tool.hatch.envs.javascript.scripts]
137+
check = ["cd src/js && bun install && bun run check"]
138+
132139
# >>> Generic Tools <<<
133140

134141
[tool.ruff]

0 commit comments

Comments
 (0)