Skip to content

Commit 2c3949b

Browse files
authored
Merge branch 'main' into feat/core-radio-button-component
2 parents 6b2c412 + 8c8796c commit 2c3949b

File tree

66 files changed

+1734
-360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1734
-360
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,24 @@ permissions:
2020

2121
jobs:
2222
build:
23+
name: build${{ matrix.react != 16 && format(' (React {0})', matrix.react) || '' }}
24+
strategy:
25+
matrix:
26+
react: [16, 18]
2327
uses: cloudscape-design/actions/.github/workflows/build-lint-test.yml@main
2428
secrets: inherit
2529
with:
2630
artifact-path: pages/lib/static-default
27-
artifact-name: dev-pages
31+
artifact-name: dev-pages-react${{ matrix.react }}
32+
react-version: ${{ matrix.react }}
2833
deploy:
2934
needs: build
35+
name: deploy${{ matrix.react != 16 && format(' (React {0})', matrix.react) || '' }}
36+
strategy:
37+
matrix:
38+
react: [16, 18]
3039
uses: cloudscape-design/actions/.github/workflows/deploy.yml@main
3140
secrets: inherit
3241
with:
33-
artifact-name: dev-pages
42+
artifact-name: dev-pages-react${{ matrix.react }}
3443
deployment-path: pages/lib/static-default

build-tools/tasks/integ.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const { parseArgs } = require('node:util');
88

99
module.exports = task('test:integ', async () => {
1010
const options = {
11-
shard: {
12-
type: 'string',
13-
},
11+
shard: { type: 'string' },
12+
reactVersion: { type: 'string' },
1413
};
15-
const shard = parseArgs({ options, strict: false }).values.shard;
14+
const { shard, reactVersion = '16' } = parseArgs({ options, strict: false }).values;
1615
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.cjs'], {
1716
env: {
1817
NODE_ENV: 'development',
18+
REACT_VERSION: reactVersion,
1919
},
2020
});
2121
await waitOn({ resources: ['http://localhost:8080'] });

build-tools/tasks/motion.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ const execa = require('execa');
44
const glob = require('glob');
55
const waitOn = require('wait-on');
66
const { task } = require('../utils/gulp-utils.js');
7+
const { parseArgs } = require('node:util');
78

89
module.exports = task('test:motion', async () => {
10+
const options = {
11+
reactVersion: { type: 'string' },
12+
};
13+
const { reactVersion = '16' } = parseArgs({ options, strict: false }).values;
914
const devServer = execa('webpack', ['serve', '--config', 'pages/webpack.config.integ.cjs'], {
1015
env: {
1116
NODE_ENV: 'development',
17+
REACT_VERSION: reactVersion,
1218
},
1319
});
1420
await waitOn({ resources: ['http://localhost:8080'] });

0 commit comments

Comments
 (0)