Convert CI to matrix configuration
This commit is contained in:
@@ -50,6 +50,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
|
- run:
|
||||||
|
name: Report Node and NPM versions
|
||||||
|
command: echo "Using Node $(node --version) and NPM $(npm --version)"
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: npm test
|
command: npm test
|
||||||
@@ -84,6 +87,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
|
- run:
|
||||||
|
name: Report Node and NPM versions
|
||||||
|
command: echo "Using Node $(node --version) and NPM $(npm --version)"
|
||||||
- run:
|
- run:
|
||||||
name: Run tests in parallel
|
name: Run tests in parallel
|
||||||
command: npm run test:parallel
|
command: npm run test:parallel
|
||||||
@@ -126,52 +132,24 @@ workflows:
|
|||||||
push:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
- build:
|
- build:
|
||||||
executor: node24
|
matrix:
|
||||||
name: build_node_24
|
parameters:
|
||||||
- build:
|
executor: [node20, node22, node24]
|
||||||
executor: node22
|
|
||||||
name: build_node_22
|
|
||||||
- build:
|
|
||||||
executor: node20
|
|
||||||
name: build_node_20
|
|
||||||
- test_node:
|
- test_node:
|
||||||
executor: node24
|
matrix:
|
||||||
name: test_node_24
|
parameters:
|
||||||
|
executor: [node20, node22, node24]
|
||||||
requires:
|
requires:
|
||||||
- build_node_24
|
- build-<< matrix.executor >>
|
||||||
- test_node:
|
|
||||||
executor: node22
|
|
||||||
name: test_node_22
|
|
||||||
requires:
|
|
||||||
- build_node_22
|
|
||||||
- test_node:
|
|
||||||
executor: node20
|
|
||||||
name: test_node_20
|
|
||||||
requires:
|
|
||||||
- build_node_20
|
|
||||||
- test_parallel:
|
- test_parallel:
|
||||||
executor: node24
|
matrix:
|
||||||
name: test_parallel_node_24
|
parameters:
|
||||||
|
executor: [node20, node22, node24]
|
||||||
requires:
|
requires:
|
||||||
- build_node_24
|
- build-<< matrix.executor >>
|
||||||
- test_parallel:
|
|
||||||
executor: node22
|
|
||||||
name: test_parallel_node_22
|
|
||||||
requires:
|
|
||||||
- build_node_22
|
|
||||||
- test_parallel:
|
|
||||||
executor: node20
|
|
||||||
name: test_parallel_node_20
|
|
||||||
requires:
|
|
||||||
- build_node_20
|
|
||||||
- test_parallel:
|
|
||||||
executor: node20
|
|
||||||
name: test_parallel_node_20
|
|
||||||
requires:
|
|
||||||
- build_node_20
|
|
||||||
- test_browsers:
|
- test_browsers:
|
||||||
requires:
|
requires:
|
||||||
- build_node_20
|
- build-node20
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore: /pull\/.*/ # Don't run on pull requests.
|
ignore: /pull\/.*/ # Don't run on pull requests.
|
||||||
|
|||||||
Reference in New Issue
Block a user