Skip to content

Commit

Permalink
chore: add build:ci command in test job
Browse files Browse the repository at this point in the history
  • Loading branch information
halvaradop committed Oct 7, 2024
1 parent 5205c8f commit e2383c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
with:
node-version: "18.x"
- run: npm install
# rebuild the project to ensure that the test files are available
- run: npm run build:ci
- run: npm test

deploy-to-development:
Expand Down
5 changes: 2 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import { defineConfig } from "vitest/config"
*/
export default defineConfig({
test: {
include: ["test/**/*.test.ts"],
coverage: {
provider: "v8",
reporter: ["text", "html"],
include: ["packages/**/*.ts"],
exclude: ["node_modules", "packages/**/dist"],
include: ["packages/**/*.ts", "!packages/**/*.config.ts"],
exclude: ["**/node_modules", "**/dist"],
},
},
})

0 comments on commit e2383c7

Please sign in to comment.