Skip to content

Commit

Permalink
Merge pull request #356 from reduxjs/feature/3.0-bump-deps-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Nov 16, 2023
2 parents 3eea8af + 8863682 commit 0ad3af1
Show file tree
Hide file tree
Showing 3 changed files with 367 additions and 427 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/test.yml
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
node: ['16.x']
ts: ['4.2', '4.3', '4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5.0']
ts: ['4.7', '4.8', '4.9', '5.0', '5.1', '5.2']

steps:
- name: Checkout repo
Expand Down Expand Up @@ -89,16 +89,7 @@ jobs:
fail-fast: false
matrix:
node: ['16.x']
example:
[
'cra4',
'cra5',
'next',
'vite',
'node-standard',
'node-esm',
'are-the-types-wrong'
]
example: ['cra4', 'cra5', 'next', 'vite', 'node-standard', 'node-esm']
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -143,10 +134,25 @@ jobs:
- name: Run test step
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
run: yarn test
if: matrix.example != 'are-the-types-wrong'

- name: Run test step (attw)
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
# Ignore "FalseCJS" errors in the `attw` job
run: yarn test -n FalseCJS
if: matrix.example == 'are-the-types-wrong'
are-the-types-wrong:
name: Check package config with are-the-types-wrong

needs: [build]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['16.x']
steps:
- name: Checkout repo
uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: package
path: .

# Note: We currently expect "FalseCJS" failures for Node16 + `moduleResolution: "node16"
- name: Run are-the-types-wrong
run: npx @arethetypeswrong/cli ./package.tgz --format table --ignore-rules false-cjs
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -49,7 +49,7 @@
"prepack": "yarn build"
},
"peerDependencies": {
"redux": "^4 || ^5.0.0-beta.0"
"redux": "^5.0.0-rc.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.1.0",
Expand All @@ -60,8 +60,8 @@
"prettier": "^2.4.1",
"redux": "^4",
"rimraf": "^3.0.2",
"tsup": "^6.7.0",
"typescript": "^4.4",
"vitest": "^0.29.8"
"tsup": "7.0.0",
"typescript": "^5.0",
"vitest": "^0.32.0"
}
}

0 comments on commit 0ad3af1

Please sign in to comment.