feat(ci): test typescript types (#4802)

This commit is contained in:
Kevin Marrec 2019-01-19 13:47:23 +01:00 committed by Pooya Parsa
parent 9b3e7be3e7
commit 25fd1d8dfc
1 changed files with 17 additions and 3 deletions

View File

@ -120,7 +120,7 @@ jobs:
command: yarn lint:app command: yarn lint:app
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# Phase 3: Unit and E2E tests # Phase 3: Unit, E2E and types tests
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
test-unit: test-unit:
<<: *defaults <<: *defaults
@ -144,6 +144,18 @@ jobs:
name: E2E Tests name: E2E Tests
command: yarn test:e2e && yarn coverage 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) # Phase 4: Release (dev branch only)
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
@ -170,8 +182,9 @@ workflows:
- lint-app: { requires: [build] } - lint-app: { requires: [build] }
- test-unit: { requires: [build] } - test-unit: { requires: [build] }
- test-e2e: { requires: [build] } - test-e2e: { requires: [build] }
- test-types: { requires: [build] }
- release-commit: - 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: filters:
<<: *release_branches <<: *release_branches
@ -185,8 +198,9 @@ workflows:
- lint-app: { requires: [build] } - lint-app: { requires: [build] }
- test-unit: { requires: [build] } - test-unit: { requires: [build] }
- test-e2e: { requires: [build] } - test-e2e: { requires: [build] }
- test-types: { requires: [build] }
- release-nightly: - 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: triggers:
- schedule: - schedule:
cron: "0 0 * * *" cron: "0 0 * * *"