Skip to content

Commit 935e127

Browse files
committed
Copy test-published-artifact CI job from React-Redux
1 parent c7479d6 commit 935e127

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

.github/workflows/build-and-test-types.yml

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: CI
22

3-
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
3+
on: [push, pull_request, workflow_dispatch]
84

95
jobs:
106
build:
@@ -153,26 +149,14 @@ jobs:
153149
- name: Check folder contents
154150
run: ls -l .
155151

156-
# Some weird install diffs with cloning this repo and installing.
157-
# Just kill the lockfiles for this repo and RTK and reinstall
158-
159-
- name: Remove top lockfile
160-
run: rm yarn.lock && rm package.json
161-
162-
- name: Remove RTK lockfile
163-
working-directory: ./redux-toolkit
164-
run: rm yarn.lock && rm package.json
165-
166-
- name: Install deps
152+
- name: Install example deps
167153
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
168-
env:
169-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
170-
run: rm yarn.lock && yarn install
154+
run: yarn install
171155

172156
- name: Install Playwright browser if necessary
173157
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
174158
continue-on-error: true
175-
run: yarn playwright install
159+
run: yarn playwright install || true
176160

177161
- uses: actions/download-artifact@v4
178162
with:
@@ -191,17 +175,6 @@ jobs:
191175
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
192176
run: yarn info reselect && yarn why reselect
193177

194-
- name: Set up JDK 17 for React Native build
195-
if: matrix.example == 'react-native'
196-
uses: actions/setup-java@v4
197-
with:
198-
java-version: '17.x'
199-
distribution: 'temurin'
200-
201-
- name: Check MSW version
202-
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
203-
run: yarn why msw
204-
205178
- name: Build example
206179
working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
207180
env:

0 commit comments

Comments
 (0)