Skip to content

Commit fcb5f6f

Browse files
committed
Use real attw, and bump TS test matrix
1 parent 55f2635 commit fcb5f6f

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
fail-fast: false
5858
matrix:
5959
node: ['16.x']
60-
ts: ['4.2', '4.3', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5.0']
60+
ts: ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2']
6161

6262
steps:
6363
- name: Checkout repo
@@ -143,10 +143,25 @@ jobs:
143143
- name: Run test step
144144
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
145145
run: yarn test
146-
if: matrix.example != 'are-the-types-wrong'
147146

148-
- name: Run test step (attw)
149-
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
150-
# Ignore "FalseCJS" errors in the `attw` job
151-
run: yarn test -n FalseCJS
152-
if: matrix.example == 'are-the-types-wrong'
147+
are-the-types-wrong:
148+
name: Check package config with are-the-types-wrong
149+
150+
needs: [build]
151+
runs-on: ubuntu-latest
152+
strategy:
153+
fail-fast: false
154+
matrix:
155+
node: ['16.x']
156+
steps:
157+
- name: Checkout repo
158+
uses: actions/checkout@v3
159+
160+
- uses: actions/download-artifact@v3
161+
with:
162+
name: package
163+
path: .
164+
165+
# Note: We currently expect "FalseCJS" failures for Node16 + `moduleResolution: "node16"
166+
- name: Run are-the-types-wrong
167+
run: npx @arethetypeswrong/cli ./package.tgz --format table --ignore-rules false-cjs

0 commit comments

Comments
 (0)