4242 type :
4343 name : library
4444 language : js
45+ - os : windows-latest
46+ type :
47+ name : library
48+ language : js
4549
4650 concurrency :
4751 group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type.name }}-${{ matrix.type.language }}
@@ -61,10 +65,12 @@ jobs:
6165 yarn workspace create-react-native-library prepare
6266
6367 - name : Get working directory
68+ shell : bash
6469 run : |
6570 echo "work_dir=${{ matrix.os }}-${{ matrix.type.name }}-${{ matrix.type.language }}" >> $GITHUB_ENV
6671
6772 - name : Create library
73+ shell : bash
6874 run : |
6975 rm -rf ${{ env.work_dir }} # Workaround for tests failing intermittently
7076
@@ -102,6 +108,7 @@ jobs:
102108 - name : Install dependencies of library
103109 if : steps.library-yarn-cache.outputs.cache-hit != 'true'
104110 working-directory : ${{ env.work_dir }}
111+ shell : bash
105112 run : |
106113 touch yarn.lock # Without this Yarn will fail due to the parent directory being a Yarn workspace
107114 rm -f example/yarn.lock # Workaround for cached yarn.lock from older version
@@ -117,6 +124,7 @@ jobs:
117124 key : ${{ steps.library-yarn-cache.outputs.cache-primary-key }}
118125
119126 - name : Use local version of react-native-builder-bob
127+ shell : bash
120128 run : |
121129 cd packages/react-native-builder-bob
122130 npm pack
@@ -127,6 +135,7 @@ jobs:
127135
128136 - name : Get build target
129137 working-directory : ${{ env.work_dir }}
138+ shell : bash
130139 run : |
131140 # Build Android for only some matrices to skip redundant builds
132141 if [[ ${{ matrix.os }} =~ ubuntu ]]; then
@@ -160,6 +169,7 @@ jobs:
160169 - name : Check turborepo cache
161170 if : env.android_build == 1 || env.ios_build == 1
162171 working-directory : ${{ env.work_dir }}
172+ shell : bash
163173 run : |
164174 TURBO_CACHE_STATUS_ANDROID=$(node -p "($(yarn turbo run build:android --cache-dir=".turbo" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
165175 TURBO_CACHE_STATUS_IOS=$(node -p "($(yarn turbo run build:ios --cache-dir=".turbo" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
@@ -193,8 +203,9 @@ jobs:
193203 yarn prepare
194204
195205 - name : Build example (Web)
196- working-directory : ${{ env.work_dir }}
197206 if : matrix.type.language == 'js'
207+ working-directory : ${{ env.work_dir }}
208+ shell : bash
198209 run : |
199210 # Clean up built JS files
200211 # So we test that bundling works without any pre-built files
0 commit comments