From 9082c823d608df069ffebb98d601c1f955644317 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Wed, 8 May 2024 11:18:23 -0500 Subject: [PATCH] run tsc on generated client in CI --- .github/workflows/validate.yml | 6 ++++++ oxide-api/package.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index b7e2bab..4f5cc4c 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 diff --git a/oxide-api/package.json b/oxide-api/package.json index c7b668c..5e354b3 100644 --- a/oxide-api/package.json +++ b/oxide-api/package.json @@ -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",