From efd278b78b80fa6d27d912221bc27aa62f196237 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Mon, 11 Mar 2024 13:38:17 -0500 Subject: [PATCH] Add Expo and React Native examples to CI (#365) --- .github/workflows/test.yml | 18 +++++++++++++++++- tsconfig.json | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4142231..f6aa63e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 . diff --git a/tsconfig.json b/tsconfig.json index 4395c6d..88686c9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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