Skip to content

Commit 0fed485

Browse files
authored
run format check on ci (#49)
*Issue #, if available:* *Description of changes:* By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 3ad51f3 commit 0fed485

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Build
2-
on:
2+
on:
33
push:
44
branches:
5-
- main
5+
- main
66
workflow_dispatch:
77
pull_request:
88
jobs:
@@ -13,22 +13,32 @@ jobs:
1313
- name: Use Node.js
1414
uses: actions/setup-node@v1
1515
with:
16-
node-version: "22.x"
16+
node-version: '22.x'
1717
- run: |
1818
npm ci
19+
npm run format:check
20+
working-directory: ./cdk
21+
name: Install dependencies and run static analysis
22+
- run: |
1923
npm run build
2024
npm run test
2125
working-directory: ./cdk
26+
name: build and test
2227
Build-and-Test-Webapp:
2328
runs-on: ubuntu-latest
2429
steps:
2530
- uses: actions/checkout@v2
2631
- name: Use Node.js
2732
uses: actions/setup-node@v1
2833
with:
29-
node-version: "22.x"
34+
node-version: '22.x'
3035
- run: |
3136
npm ci
37+
npm run format:check
38+
working-directory: ./webapp
39+
name: Install dependencies and run static analysis
40+
- run: |
3241
cp .env.local.example .env.local
3342
npm run build
3443
working-directory: ./webapp
44+
name: build

webapp/src/jobs/async-job-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const jobPayloadPropsSchema = z.discriminatedUnion('type', [
77
z.object({
88
type: z.literal('example'),
99
}),
10-
])
10+
]);
1111

1212
export type JobPayloadProps = z.infer<typeof jobPayloadPropsSchema>;
1313

0 commit comments

Comments
 (0)