Skip to content

Commit

Permalink
ci: Fix type errors in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Feb 15, 2024
1 parent 2abe852 commit cb0e62b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: bun generate:types
- run: bun compile
tests:
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ logs
node_modules
dist
src/@types/gql.d.ts
tsconfig.tsbuildinfo

# Editor directories and files
.vscode/*
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "bun --hot run src/dev.ts",
"generate:types": "bun run src/generate-types.ts",
"docker:build": "docker build . -t aklinker1/store-api",
"docker:run": "docker run -it aklinker1/store-api",
"docker:build:amd": "bun docker:build --platform linux/amd64",
Expand Down
6 changes: 6 additions & 0 deletions src/generate-types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { generateGqlTypes } from "../scripts/generate-gql-types";
import { createServer } from "./server";

const server = createServer();
await generateGqlTypes(server);
server.httpServer.stop();

0 comments on commit cb0e62b

Please sign in to comment.