Skip to content

Commit

Permalink
Merge pull request #228 from yagni/add-unit-tests-to-circleci
Browse files Browse the repository at this point in the history
Update to next-gen CircleCI convenience image and enable unit tests.
  • Loading branch information
yagni authored Dec 5, 2022
2 parents 5a985c7 + c875588 commit 5b0d7fc
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
version: 2
version: 2.1

orbs:
browser-tools: circleci/[email protected]

defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:16.13
- image: cimg/node:16.18-browsers
environment:
NODE_ENV: development

jobs:
test:
Expand All @@ -12,16 +17,16 @@ jobs:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- v1-dependencies-{{ checksum "package-lock.json" }}
- run: npm install
- run: npm run build:ci
- browser-tools/install-browser-tools
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# TODO: Support for unit tests in status check
# - run: npm run test
- ~/.cache/puppeteer
key: v1-dependencies-{{ checksum "package-lock.json" }}
- run: npm run test

# Publish latest
deploy:
Expand Down

0 comments on commit 5b0d7fc

Please sign in to comment.