Skip to content

Commit 46d10cc

Browse files
author
deleonn
committed
Run browser tests
1 parent 1558e79 commit 46d10cc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.circleci/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
version: 2.1
22

3+
orbs:
4+
browser-tools: circleci/browser-tools@1.1.0
5+
36
jobs:
47
run-tests:
58
parameters:
69
node-version:
710
type: string
811
docker:
9-
- image: cimg/node:<< parameters.node-version >> # Primary execution image
12+
- image: cimg/node:<< parameters.node-version >>-browsers # Primary execution image
1013
auth:
1114
username: $DOCKERHUB_USERNAME
1215
password: $DOCKERHUB_PASSWORD
@@ -15,6 +18,7 @@ jobs:
1518
username: $DOCKERHUB_USERNAME
1619
password: $DOCKERHUB_PASSWORD
1720
steps:
21+
- browser-tools/install-browser-tools
1822
- checkout
1923
- run:
2024
name: NPM install
@@ -23,8 +27,8 @@ jobs:
2327
name: Run linting
2428
command: npm run lint
2529
- run:
26-
name: Run tests with coverage
27-
command: npm run coverage
30+
name: Run tests with browser
31+
command: npm run test:browser
2832
- store_artifacts:
2933
path: coverage
3034
publish-npm:

0 commit comments

Comments
 (0)