Skip to content

Commit 3a4ef4a

Browse files
authored
Merge pull request #37 from opf/implementation/67543-add-test-framework
https://community.openproject.org/work_packages/67543 This should be a "kick off" for adding tests to the project. So that when new changes are made, tests can be added on the go. I also added coverage, because when having a test suite it's always also important to know the blind spots of that test suite.
2 parents ac5ee0d + 010509a commit 3a4ef4a

File tree

5 files changed

+1159
-16
lines changed

5 files changed

+1159
-16
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: test.yml
2+
on:
3+
pull_request:
4+
types: [opened, reopened, synchronize]
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
units:
11+
name: Units
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v5
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v5
20+
with:
21+
node-version: '22.19'
22+
cache: npm
23+
cache-dependency-path: package-lock.json
24+
25+
- name: Install Dependencies
26+
id: npm-i
27+
run: npm i
28+
29+
- name: run tests
30+
id: npm-test
31+
run: CI=1 npm test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ node_modules
1111
dist-ssr
1212
dist
1313
*.local
14+
coverage/
1415

1516
# Editor directories and files
1617
.vscode/*
@@ -25,3 +26,4 @@ dist
2526

2627
# build things
2728
op-blocknote-extensions-*
29+

0 commit comments

Comments
 (0)