Skip to content

Commit 147c2a4

Browse files
committed
Add tests
1 parent c5450ac commit 147c2a4

File tree

8 files changed

+5990
-0
lines changed

8 files changed

+5990
-0
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,17 @@ updates:
1313
interval: weekly
1414
cooldown:
1515
default-days: 7
16+
- package-ecosystem: npm
17+
directory: /
18+
schedule:
19+
interval: weekly
20+
cooldown:
21+
default-days: 7
22+
groups:
23+
minor-python-dependencies:
24+
update-types:
25+
- "minor"
26+
- "patch"
27+
major-python-dependencies:
28+
update-types:
29+
- "major"

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ permissions:
1919
contents: read
2020

2121
jobs:
22+
vitest:
23+
runs-on: macos-latest
24+
steps:
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.2.0
27+
with:
28+
node-version-file: .nvmrc
29+
cache: npm
30+
- name: Install Node dependencies
31+
run: npm ci
32+
- run: npm test
33+
- name: Store coverage file
34+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
35+
with:
36+
name: coverage-vitest
37+
path: coverage/*
38+
include-hidden-files: true
39+
2240
mysql:
2341
runs-on: ubuntu-latest
2442
strategy:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ venv
1717
.envrc
1818
.venv
1919
.vscode
20+
21+
# Node
22+
node_modules/
23+
coverage/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

0 commit comments

Comments
 (0)