Skip to content

Commit 6f3225a

Browse files
authored
test: add changelog tests (#76)
1 parent b5e39ab commit 6f3225a

File tree

6 files changed

+841
-8
lines changed

6 files changed

+841
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ jobs:
2222
cache: "pnpm"
2323
cache-dependency-path: "**/pnpm-lock.yaml"
2424
- run: pnpm install --frozen-lockfile --prefer-offline
25+
# Setup git user for commit operations in tests
26+
- run: |
27+
git config --global user.email "[email protected]"
28+
git config --global user.name "test"
2529
- run: pnpm qa

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
},
2121
"scripts": {
2222
"build": "tnode scripts/build.ts",
23+
"test": "vitest",
2324
"prettier": "pnpm prettier-ci --write",
2425
"prettier-ci": "prettier --cache --ignore-path=.gitignore --check '**/*.{ts,json,md,yml}'",
25-
"qa": "tsc && pnpm prettier-ci && pnpm build",
26+
"qa": "tsc && pnpm prettier-ci && pnpm build && vitest run",
2627
"release": "tnode scripts/release.ts"
2728
},
2829
"dependencies": {
@@ -41,8 +42,10 @@
4142
"@types/prompts": "^2.4.9",
4243
"@types/semver": "^7.7.0",
4344
"esbuild": "^0.25.8",
45+
"fs-fixture": "^2.8.1",
4446
"prettier": "^3.6.2",
45-
"typescript": "^5.8.3"
47+
"typescript": "^5.8.3",
48+
"vitest": "^3.2.4"
4649
},
4750
"packageManager": "[email protected]"
4851
}

0 commit comments

Comments
 (0)