From 25fd1d8dfce5124490c5c5dcd4749b571f36e2c5 Mon Sep 17 00:00:00 2001 From: Kevin Marrec Date: Sat, 19 Jan 2019 13:47:23 +0100 Subject: [PATCH] feat(ci): test typescript types (#4802) --- .circleci/config.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2689cff651..66d63ee963 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -120,7 +120,7 @@ jobs: command: yarn lint:app # -------------------------------------------------------------------------- - # Phase 3: Unit and E2E tests + # Phase 3: Unit, E2E and types tests # -------------------------------------------------------------------------- test-unit: <<: *defaults @@ -144,6 +144,18 @@ jobs: name: E2E Tests command: yarn test:e2e && yarn coverage + test-types: + <<: *defaults + docker: + - image: circleci/node:latest-browsers + steps: + - checkout + - attach_workspace: + at: ~/project + - run: + name: Types Tests + command: yarn test:types + # -------------------------------------------------------------------------- # Phase 4: Release (dev branch only) # -------------------------------------------------------------------------- @@ -170,8 +182,9 @@ workflows: - lint-app: { requires: [build] } - test-unit: { requires: [build] } - test-e2e: { requires: [build] } + - test-types: { requires: [build] } - release-commit: - requires: [build, lint, lint-app, audit, test-unit, test-e2e] + requires: [build, lint, lint-app, audit, test-unit, test-e2e, test-types] filters: <<: *release_branches @@ -185,8 +198,9 @@ workflows: - lint-app: { requires: [build] } - test-unit: { requires: [build] } - test-e2e: { requires: [build] } + - test-types: { requires: [build] } - release-nightly: - requires: [build, lint, lint-app, audit, test-unit, test-e2e] + requires: [build, lint, lint-app, audit, test-unit, test-e2e, test-types] triggers: - schedule: cron: "0 0 * * *"