Skip to content

Commit 083d830

Browse files
Merge pull request #233 from terminusdb/integration_tests
Integration tests and fix addDocument
2 parents 9fb4ab4 + 846e1f6 commit 083d830

File tree

12 files changed

+15951
-10323
lines changed

12 files changed

+15951
-10323
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ jobs:
3232
- uses: actions/setup-node@v1
3333
with:
3434
node-version: 14
35-
- name: Install and test
36-
run: npm install-ci-test
37-
- name: Build
38-
run: npm run build
35+
- name: Run terminusdb server
36+
run: docker run --detach --publish 127.0.0.1:6363:6363 terminusdb/terminusdb-server:dev && sleep 3
37+
- name: Install, build and test
38+
run: |
39+
npm ci
40+
npm run build
41+
npm run test
42+
npm run test:integration
3943
- name: Lint
4044
run: npm run lint:check
4145
- name: Check for changes to docs
@@ -50,4 +54,4 @@ jobs:
5054
- name: Update coveralls
5155
uses: coverallsapp/github-action@master
5256
with:
53-
github-token: ${{ secrets.GITHUB_TOKEN }}
57+
github-token: ${{ secrets.GITHUB_TOKEN }}

docs/api/typedef.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ the GET document interface query parameters
1212

1313
| Name | Type | Description |
1414
| --- | --- | --- |
15+
| [query] | <code>object</code> | object that descrive the document query |
1516
| [graph_type] | <code>GraphType</code> | instance|schema, default value is instance. Used to switch between getting documents from the instance or the schema graph. |
1617
| [type] | <code>string</code> | only documents of the given type are returned. |
1718
| [id] | <code>string</code> | only the document with the given ID is returned. |

0 commit comments

Comments
 (0)