File tree 5 files changed +32
-20
lines changed 5 files changed +32
-20
lines changed Original file line number Diff line number Diff line change @@ -230,24 +230,26 @@ jobs:
230
230
- name : Lint CSS
231
231
run : pnpm lint:css
232
232
233
- # FIXME: Identify a way to generate schema before we run typecheck
234
- # typecheck:
235
- # name: Typecheck
236
- # runs-on: ubuntu-latest
237
- # steps:
238
- # - uses: actions/checkout@v4
239
- # - name: Install pnpm
240
- # uses: pnpm/action-setup@v4
241
- # - name: Install Node.js
242
- # uses: actions/setup-node@v4
243
- # with:
244
- # node-version: 20
245
- # cache: 'pnpm'
246
- # - name: Install dependencies
247
- # run: pnpm install
248
- #
249
- # - name: Typecheck
250
- # run: pnpm typecheck
233
+ typecheck :
234
+ name : Typecheck
235
+ runs-on : ubuntu-latest
236
+ defaults :
237
+ run :
238
+ working-directory : app
239
+ steps :
240
+ - uses : actions/checkout@v4
241
+ - name : Install pnpm
242
+ uses : pnpm/action-setup@v4
243
+ - name : Install Node.js
244
+ uses : actions/setup-node@v4
245
+ with :
246
+ node-version : 20
247
+ cache : ' pnpm'
248
+ - name : Install dependencies
249
+ run : pnpm install
250
+
251
+ - name : Typecheck
252
+ run : pnpm typecheck
251
253
252
254
typos :
253
255
name : Spell Check with Typos
Original file line number Diff line number Diff line change
1
+ [submodule "go-api "]
2
+ path = go-api
3
+ url = https://github.com/IFRCGo/go-api.git
4
+ branch = feature/schema-file
5
+ [submodule "risk-api "]
6
+ path = risk-api
7
+ url = https://github.com/IFRCGo/go-risk-module-api.git
8
+ branch = feature/schema-file
Original file line number Diff line number Diff line change 17
17
"initialize:type:go-api" : " test -f ./generated/types.ts && true || cp types.stub.ts ./generated/types.ts" ,
18
18
"initialize:type:risk-api" : " test -f ./generated/riskTypes.ts && true || cp types.stub.ts ./generated/riskTypes.ts" ,
19
19
"generate:type" : " pnpm generate:type:go-api && pnpm generate:type:risk-api" ,
20
- "generate:type:go-api" : " dotenv -- cross-var openapi-typescript \" %APP_API_ENDPOINT%api-docs/ \" -o ./generated/types.ts --alphabetize" ,
21
- "generate:type:risk-api" : " dotenv -- cross-var openapi-typescript \" %APP_RISK_API_ENDPOINT%api-docs/ \" -o ./generated/riskTypes.ts --alphabetize" ,
20
+ "generate:type:go-api" : " dotenv -- cross-var openapi-typescript ../go-api/openapi-schema.yaml -o ./generated/types.ts --alphabetize" ,
21
+ "generate:type:risk-api" : " dotenv -- cross-var openapi-typescript ../risk-api/openapi-schema.yaml -o ./generated/riskTypes.ts --alphabetize" ,
22
22
"prestart" : " pnpm initialize:type" ,
23
23
"start" : " pnpm -F @ifrc-go/ui build && vite" ,
24
24
"prebuild" : " pnpm initialize:type" ,
You can’t perform that action at this time.
0 commit comments