Skip to content

Commit

Permalink
Ensure that committed and generated types are the same (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun authored Apr 26, 2024
1 parent c760007 commit 6d4c576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ jobs:
- name: Run tests
run: |
npm i
npm run formatCheck
rm -r ./types
npx tsc
npx tsc -p ./test
# ensure that committed and generated types are the same
git diff --exit-code
npx quick-lint-js ./**/*.mjs
npm run formatCheck
NODE_V8_COVERAGE=coverage0 npx c8 -r lcovonly --all --src ./src node --experimental-test-coverage ./test/all.mjs
if: ${{ env.TAG_NAME == '' }}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Common plugin/api/ui for FAR.js File Browser module",
"scripts": {
"lint": "quick-lint-js ./**/*.mjs",
"test": "rm -r ./types && tsc && tsc -p ./test && bun test && node ./test/all.mjs",
"test": "tsc && tsc -p ./test && bun test && node ./test/all.mjs",
"format": "prettier **/*.mjs --write",
"formatCheck": "prettier **/*.mjs --check"
},
Expand Down

0 comments on commit 6d4c576

Please sign in to comment.