Skip to content

Commit

Permalink
run tsc on generated client in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed May 8, 2024
1 parent ccbc4b2 commit 9082c82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "18"
- working-directory: "./oxide-api"
run: npm install
- name: Typecheck
working-directory: "./oxide-api"
run: npm run tsc
- working-directory: "./oxide-openapi-gen-ts"
run: npm install
# TODO: this probably doesn't make sense anymore, it should be done already
- name: Generate client
run: "./tools/gen.sh"
- name: Typecheck
Expand Down
3 changes: 2 additions & 1 deletion oxide-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"scripts": {
"build": "tsup --dts",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"tsc": "tsc"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9082c82

Please sign in to comment.