Skip to content

Commit 7ed2389

Browse files
committed
Split package and consumer tests in CI workflow
1 parent da57cd0 commit 7ed2389

6 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
cache: yarn
2525
- run: yarn install --immutable
2626
- run: yarn build
27-
- run: yarn build:pkg
2827
- name: Test
2928
env:
3029
GIT_AUTHOR_NAME: 'Simple Git Tests'
3130
GIT_AUTHOR_EMAIL: 'tests@simple-git.dev'
3231
run: yarn test
32+
- run: yarn build:pkg
33+
- run: yarn test:consumer
3334

3435
build-windows:
3536
runs-on: windows-latest

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"lint": "biome check",
2020
"lint:fix": "biome check --write",
2121
"test": "yarn workspaces foreach -A run test",
22+
"test:consumer": "yarn workspaces foreach -A run test:consumer",
2223
"test:win": "yarn workspaces foreach -A run test:win"
2324
},
2425
"dependencies": {

packages/test-es-module-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.1",
55
"type": "module",
66
"scripts": {
7-
"test": "node test.mjs"
7+
"test:consumer": "node test.mjs"
88
},
99
"dependencies": {
1010
"simple-git": "*"

packages/test-javascript-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"version": "1.0.1",
55
"scripts": {
6-
"test": "node test.js && node test-default.js"
6+
"test:consumer": "node test.js && node test-default.js"
77
},
88
"dependencies": {
99
"simple-git": "*"

packages/test-typescript-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212
},
1313
"scripts": {
14-
"test": "yarn test:types && yarn test:jest",
14+
"test:consumer": "yarn test:types && yarn test:jest",
1515
"test:types": "tsc",
1616
"test:jest": "jest"
1717
},

packages/test-typescript-esm-consumer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212
},
1313
"scripts": {
14-
"test": "jest"
14+
"test:consumer": "jest"
1515
},
1616
"dependencies": {
1717
"@simple-git/babel-config": "*",

0 commit comments

Comments
 (0)