-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: setup headless chrome native deps
- Loading branch information
Showing
1 changed file
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,19 @@ version: 2.1 | |
orbs: | ||
node: circleci/[email protected] | ||
|
||
commands: | ||
setup-headless-chrome: | ||
steps: | ||
- run: | ||
name: Install dependencies for Headless Chrome | ||
command: | | ||
sudo apt-get install -yq \ | ||
gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \ | ||
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \ | ||
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \ | ||
libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates \ | ||
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget | ||
jobs: | ||
test: | ||
executor: | ||
|
@@ -23,24 +36,33 @@ jobs: | |
- steps: << parameters.setup >> | ||
- node/install-packages: | ||
app-dir: << parameters.app-dir >> | ||
cache-key: yarn.lock | ||
pkg-manager: yarn | ||
- run: | ||
name: Run Tests | ||
command: yarn test | ||
working_directory: << parameters.app-dir >> | ||
|
||
workflows: | ||
martix-tests: | ||
test-matrix: | ||
jobs: | ||
- test: | ||
name: test/node:10 | ||
node-version: '10.20.1' | ||
setup: | ||
- setup-headless-chrome | ||
- test: | ||
name: test/node:12 | ||
node-version: '12.16.3' | ||
setup: | ||
- setup-headless-chrome | ||
- test: | ||
name: test/node:13 | ||
node-version: '13.14.0' | ||
setup: | ||
- setup-headless-chrome | ||
- test: | ||
name: test/node:14 | ||
node-version: '14.2.0' | ||
setup: | ||
- setup-headless-chrome |