Skip to content

Commit 51337e7

Browse files
author
deleonn
committed
Run browser tests if condition is met
1 parent 1ca357f commit 51337e7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.circleci/config.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,21 @@ jobs:
1414
username: $DOCKERHUB_USERNAME
1515
password: $DOCKERHUB_PASSWORD
1616
steps:
17-
- browser-tools/install-browser-tools
1817
- checkout
1918
- run:
2019
name: NPM install
2120
command: npm ci
2221
- run:
2322
name: Run tests with coverage
2423
command: npm run test:ci
25-
- store_artifacts:
26-
path: coverage
24+
- when:
25+
condition:
26+
equal: ["16.15.0", << parameters.node-version >>]
27+
steps:
28+
- browser-tools/install-browser-tools
29+
- run:
30+
name: Run tests with browser
31+
command: npm run test:browser
2732
publish-npm:
2833
docker:
2934
- image: cimg/node:16.15.0 # Primary execution image

0 commit comments

Comments
 (0)