Skip to content

Commit

Permalink
ci: add test step
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Oct 26, 2024
1 parent f297c2e commit 5caa7e9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ jobs:
debug: false

- name: Build packages
run: yarn build:packages
run: |
yarn run test
yarn build:packages
- name: Publish to NPM
run: |
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.17.0
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"examples/sample-wasm-bindgen"
],
"scripts": {
"test": "yarn workspace @toeverything/pdf-viewer test",
"build:packages": "yarn workspace @toeverything/pdf-viewer build",
"build:packages:clean": "tsc --build --clean",
"lint:prettier": "prettier --ignore-unknown --cache --check .",
"lint:prettier:fix": "prettier --ignore-unknown --cache --write .",
"prepare": "husky"
Expand All @@ -36,6 +36,7 @@
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"vite": "^5.4.9"
"vite": "^5.4.9",
"vitest": "^2.1.3"
}
}
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,7 @@ __metadata:
ts-node: "npm:^10.9.2"
typescript: "npm:^5.6.3"
vite: "npm:^5.4.9"
vitest: "npm:^2.1.3"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 5caa7e9

Please sign in to comment.