-
Notifications
You must be signed in to change notification settings - Fork 150
chore: update build job to include multiple major react versions #7125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
bc32bbe
c6a1b31
86ed252
9a9e50a
0b8bc77
b5ad1ca
ede99b4
a9bdcfd
51a3991
5cbfc18
fbedc25
2348941
d13e801
130ac3d
fde7d04
bc54f06
91149d5
4754a46
180c99c
4db1991
b276c4e
3084037
0c5972f
6edef93
5cf50ee
921193e
dcac4a4
4605deb
a9315e9
6c115e4
1d4ae4b
4daefd1
40547cc
d856333
1225e93
9da0e7e
3843714
196e222
95b6166
28b54da
a4095bf
5d7a7ad
fad9bfb
077e127
1a3c927
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,6 +121,43 @@ jobs: | |
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
test-c4p-react-major-version: | ||
strategy: | ||
matrix: | ||
react: | ||
- ^17.0.1 | ||
# - ^18.3.1 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 | ||
with: | ||
node-version: '20.x' | ||
cache: yarn | ||
- name: Cache dependencies | ||
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # 4.2.3 | ||
with: | ||
path: '**/node_modules' | ||
key: | ||
test-c4p-react-major-versions-modules-${{ runner.os }}-${{ | ||
hashFiles('yarn.lock') }} | ||
- name: Install | ||
run: yarn --immutable | ||
- name: Add React version ${{ matrix.react }} | ||
run: | | ||
yarn add react@${{ matrix.react }} react-dom@${{ matrix.react }} | ||
yarn workspace @carbon/ibm-cloud-cognitive-core add react@${{ matrix.react }} react-dom@${{ matrix.react }} -D | ||
- name: Add legacy dependencies | ||
if: ${{ startsWith(matrix.react, '^17.') }} | ||
run: | | ||
yarn add @testing-library/react@^12.0.0 -D | ||
yarn workspace @carbon/ibm-cloud-cognitive-core add @carbon/react@^1.28.0 -D | ||
yarn workspace @carbon/ibm-products add @carbon/react@^1.28.0 -P | ||
Comment on lines
+156
to
+157
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you need both of these lines? Probably just the second, right? Also, how come you're installing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah good call now that core has been decoupled.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm looks like core still needs to be included or something breaks. this might need to be looked at separately |
||
- name: CI tests for c4p with React version ${{ matrix.react }} | ||
run: yarn ci-check:test:c4p | ||
|
||
test-c4p-wc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.