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 * * *"