Skip to content

Commit 4f82d94

Browse files
committed
Add are-the-types-wrong CI job for codegen
1 parent a03d528 commit 4f82d94

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test-codegen.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,35 @@ jobs:
115115
- name: Did we fail?
116116
if: failure()
117117
run: ls -R
118+
119+
are-the-types-wrong:
120+
name: Check validity of type definitions with are-the-types-wrong
121+
122+
needs: [build]
123+
runs-on: ubuntu-latest
124+
strategy:
125+
fail-fast: false
126+
matrix:
127+
node-version: [20.x]
128+
steps:
129+
- name: Checkout repo
130+
uses: actions/checkout@v4
131+
132+
- name: Use node ${{ matrix.node-version }}
133+
uses: actions/setup-node@v4
134+
with:
135+
node-version: ${{ matrix.node-version }}
136+
cache: 'yarn'
137+
138+
- name: Install deps
139+
run: yarn install
140+
141+
- name: Download artifact
142+
id: download-artifact
143+
uses: actions/download-artifact@v4
144+
with:
145+
path: ./packages/rtk-query-codegen-openapi
146+
name: package
147+
148+
- name: Run are-the-types-wrong
149+
run: yarn dlx @arethetypeswrong/cli@latest ./package.tgz --format table

0 commit comments

Comments
 (0)