Skip to content

Commit b753249

Browse files
committed
ci: also run transformation tests
1 parent 335884b commit b753249

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
jobs:
10-
setup:
10+
test:
1111
runs-on: ubuntu-latest
1212
outputs:
1313
idp-data-key: ${{ steps.submodule-hash.outputs.hash }}
@@ -33,11 +33,17 @@ jobs:
3333
- name: Build packages
3434
run: pnpm build
3535

36+
- name: Test Leiden+
37+
run: pnpm test:leiden-plus
38+
39+
- name: Test Leiden Translation
40+
run: pnpm test:leiden-trans
41+
3642
- name: Get IDP Data
3743
run: pnpm test:idp:get-data
3844

39-
- name: Test edition
45+
- name: IDP tests – edition
4046
run: pnpm test:idp:edition
4147

42-
- name: Test translation
48+
- name: IDP tests – translation
4349
run: pnpm test:idp:translation

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"description": "",
66
"scripts": {
77
"build": "pnpm -r build",
8-
"test": "TS_NODE_PROJECT=./tsconfig.test.json mocha",
8+
"test:leiden-plus": "TS_NODE_PROJECT=./tsconfig.test.json mocha test/transform-leiden-plus.test.ts",
9+
"test:leiden-trans": "TS_NODE_PROJECT=./tsconfig.test.json mocha test/transform-leiden-trans.test.ts",
10+
"test": "pnpm run test:leiden-plus && pnpm run test:leiden-trans",
911
"test:idp:get-data": "git submodule update --init --depth 1 test/leiden-js-idp-test-data",
1012
"test:idp:edition": "TS_NODE_PROJECT=./tsconfig.test.json mocha test/idp-edition.test.ts",
1113
"test:idp:translation": "TS_NODE_PROJECT=./tsconfig.test.json mocha test/idp-translation.test.ts",

0 commit comments

Comments
 (0)