Skip to content

Commit 90c5971

Browse files
authored
chore(ci): Run tests on the CI (#26)
* Run tests on the CI * fix up puppeteer
1 parent 6b64abf commit 90c5971

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.circleci/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ jobs:
3636
- run: npx bundlesize
3737
- save-cache: *save-cache
3838

39+
Test:
40+
docker:
41+
- image: circleci/node:8
42+
steps:
43+
- checkout
44+
- restore-cache: *restore-cache
45+
- run:
46+
name: Workaround for GoogleChrome/puppeteer#290
47+
command: 'sh .circleci/setup_puppeteer.sh'
48+
- *install
49+
- run: yarn build:umd
50+
- run: yarn test
51+
3952
Semantic Release:
4053
docker:
4154
- image: circleci/node:8
@@ -52,10 +65,12 @@ workflows:
5265
jobs:
5366
- Typecheck
5467
- Build
68+
- Test
5569
- Semantic Release:
5670
requires:
5771
- Typecheck
5872
- Build
73+
- Test
5974
filters:
6075
branches:
6176
only:

.circleci/setup_puppeteer.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
sudo apt-get update
4+
sudo apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
5+
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
6+
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
7+
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
8+
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

0 commit comments

Comments
 (0)