diff --git a/.circleci/config.yml b/.circleci/config.yml index 671474af..aee31ed9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,19 @@ version: 2.1 orbs: node: circleci/node@2.1.1 +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,6 +36,7 @@ jobs: - steps: << parameters.setup >> - node/install-packages: app-dir: << parameters.app-dir >> + cache-key: yarn.lock pkg-manager: yarn - run: name: Run Tests @@ -30,17 +44,25 @@ jobs: 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