Skip to content

Commit

Permalink
ci: split tests as tasks instead of parallel runs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmmwh committed Jun 21, 2020
1 parent 7bc5dc5 commit d0f4cd4
Showing 1 changed file with 36 additions and 11 deletions.
47 changes: 36 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ jobs:
- '13.14'
- '14.4'
type: enum
webpack-version:
default: latest
enum:
- latest
- next
type: enum
setup:
default: []
type: steps
parallelism: 2
steps:
- checkout
- setup-headless-chromium
Expand All @@ -66,13 +71,13 @@ jobs:
- run:
name: Install Webpack-related dependencies
command: |
if [[ $CIRCLE_NODE_INDEX == 0 ]]; then
echo "Using webpack@latest and webpack-cli@latest"
yarn add -D webpack@latest webpack-cli@latest
elif [[ $CIRCLE_NODE_INDEX == 1 ]]; then
echo "Using webpack@next and webpack-cli@beta"
yarn add -D webpack@next webpack-cli@beta
if [[ << parameters.webpack-version >> == "next" ]]; then
WEBPACK_CLI_VERSION="beta"
else
WEBPACK_CLI_VERSION="latest"
fi
yarn add -D "webpack@<< parameters.webpack-version >>" "webpack-cli@$WEBPACK_CLI_VERSION"
- run:
name: Run Tests
command: yarn test
Expand All @@ -83,14 +88,34 @@ workflows:
jobs:
- lint-and-format
- test:
name: test/node:10
name: test/node:10/webpack:4
node-version: '10.21'
webpack-version: latest
- test:
name: test/node:12/webpack:4
node-version: '12.18'
webpack-version: latest
- test:
name: test/node:13/webpack:4
node-version: '13.14'
webpack-version: latest
- test:
name: test/node:14/webpack:4
node-version: '14.4'
webpack-version: latest
- test:
name: test/node:10/webpack:5
node-version: '10.21'
webpack-version: next
- test:
name: test/node:12
name: test/node:12/webpack:5
node-version: '12.18'
webpack-version: next
- test:
name: test/node:13
name: test/node:13/webpack:5
node-version: '13.14'
webpack-version: next
- test:
name: test/node:14
name: test/node:14/webpack:5
node-version: '14.4'
webpack-version: next

0 comments on commit d0f4cd4

Please sign in to comment.