Skip to content

Commit

Permalink
Add Expo and React Native examples to CI (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Mar 11, 2024
1 parent 9cdd958 commit efd278b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -89,7 +89,17 @@ jobs:
fail-fast: false
matrix:
node: ['20.x']
example: ['cra4', 'cra5', 'next', 'vite', 'node-standard', 'node-esm']
example:
[
'cra4',
'cra5',
'next',
'vite',
'node-standard',
'node-esm',
'react-native',
'expo'
]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -103,6 +113,12 @@ jobs:
- name: Clone RTK repo
run: git clone https://github.com/reduxjs/redux-toolkit.git ./redux-toolkit

- name: Cache example deps
uses: actions/cache@v4
with:
path: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}/node_modules
key: test-published-artifact-${{ matrix.example }}-node_modules

- name: Check folder contents
run: ls -l .

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"rootDirs": ["./src", "./test"],
"types": ["vitest/globals"],
"types": ["vitest/globals"],
"baseUrl": ".",
"paths": {
"redux-thunk": ["src/index.ts"], // @remap-prod-remove-line
Expand Down

0 comments on commit efd278b

Please sign in to comment.