Skip to content

Commit efd278b

Browse files
authored
Add Expo and React Native examples to CI (#365)
1 parent 9cdd958 commit efd278b

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,17 @@ jobs:
8989
fail-fast: false
9090
matrix:
9191
node: ['20.x']
92-
example: ['cra4', 'cra5', 'next', 'vite', 'node-standard', 'node-esm']
92+
example:
93+
[
94+
'cra4',
95+
'cra5',
96+
'next',
97+
'vite',
98+
'node-standard',
99+
'node-esm',
100+
'react-native',
101+
'expo'
102+
]
93103
steps:
94104
- name: Checkout repo
95105
uses: actions/checkout@v4
@@ -103,6 +113,12 @@ jobs:
103113
- name: Clone RTK repo
104114
run: git clone https://github.com/reduxjs/redux-toolkit.git ./redux-toolkit
105115

116+
- name: Cache example deps
117+
uses: actions/cache@v4
118+
with:
119+
path: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}/node_modules
120+
key: test-published-artifact-${{ matrix.example }}-node_modules
121+
106122
- name: Check folder contents
107123
run: ls -l .
108124

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"forceConsistentCasingInFileNames": true,
1414
"experimentalDecorators": true,
1515
"rootDirs": ["./src", "./test"],
16-
"types": ["vitest/globals"],
16+
"types": ["vitest/globals"],
1717
"baseUrl": ".",
1818
"paths": {
1919
"redux-thunk": ["src/index.ts"], // @remap-prod-remove-line

0 commit comments

Comments
 (0)