Skip to content

Commit

Permalink
ci(ts-vitest): only run vitest on Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
jderochervlk committed Feb 27, 2024
1 parent eacdd2b commit 5b1b22f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ jobs:
- name: Run unit tests
run: yarn test:ci

- name: Run vitest unit tests
if: matrix.node == 18
run: yarn test:vitest:ci

- name: Publish code coverage
if: matrix.node == env.LATEST_NODE_VERSION
run: echo Not Implemented Yet
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@
"build": " lerna run build --ignore rabbitmq-integration",
"build:watch": "lerna run --parallel build:watch --ignore rabbitmq-integration",
"clean": "rimraf packages//lib && rimraf packages//*.tsbuildinfo",
"test": "jest && vitest",
"test": "jest",
"test:integration": "jest --config ./jest-e2e.json",
"test:ci:integration": "NODE_ENV=ci jest --config ./jest-e2e.json --forceExit",
"test:ci": "jest --coverage --coverageReporters=cobertura --coverageReporters=html && vitest run --coverage",
"test:ci": "jest --coverage --coverageReporters=cobertura --coverageReporters=html",
"test:vitest": "vitest",
"test:vitest:ci": "vitest run --coverage",
"lint": "eslint --ext ts .",
"contributors:generate": "all-contributors generate"
},
Expand Down Expand Up @@ -104,4 +106,4 @@
"node": "18.16.1",
"yarn": "1.22.21"
}
}
}

0 comments on commit 5b1b22f

Please sign in to comment.