Skip to content

Commit b1bf1d5

Browse files
ci(github): check types in workflow lint.yml
1 parent e98355d commit b1bf1d5

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,3 @@ jobs:
2222

2323
- name: Build package
2424
run: npm run build
25-
26-
- name: Lint package
27-
run: npm run lint:package

.github/workflows/lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,14 @@ jobs:
2828

2929
- name: Type check
3030
run: npm run lint:tsc
31+
32+
- name: Lint package
33+
run: npm run lint:package
34+
35+
- name: Check types
36+
run: |
37+
npx @arethetypeswrong/cli --pack
38+
if [[ "$(npx @arethetypeswrong/cli --pack -f json | jq '.problems != {}')" == 'true' ]]; then
39+
npx @arethetypeswrong/cli --pack -f json | jq
40+
exit 1
41+
fi

0 commit comments

Comments
 (0)