chore: add typescript compile ci job
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -17,6 +17,14 @@ jobs:
- run: yarn add -D mocha-junit-reporter@1
- run: yarn exec nps lint
- persist_to_workspace: {root: node_modules, paths: ["*"]}
+ compile-typescript:
+ <<: *lint
+ steps:
+ - checkout
+ - restore_cache: *restore_cache
+ - attach_workspace: {at: node_modules}
+ - run: yarn
+ - run: rm -rf lib && npx tsc --noEmit && rm -fr lib
node-latest-multi:
<<: *lint
steps: &multi_steps
@@ -141,12 +149,13 @@ workflows:
oclif:
jobs:
- lint
- - node-latest-base: {requires: [lint] }
- - node-latest-single: {requires: [lint] }
- - node-latest-plugin: {requires: [lint] }
- - node-latest-multi: {requires: [lint] }
- - node-latest-command: {requires: [lint] }
- - node-latest-hook: {requires: [lint] }
+ - compile-typescript
+ - node-latest-base: {requires: [lint, compile-typescript] }
+ - node-latest-single: {requires: [lint, compile-typescript] }
+ - node-latest-plugin: {requires: [lint, compile-typescript] }
+ - node-latest-multi: {requires: [lint, compile-typescript] }
+ - node-latest-command: {requires: [lint, compile-typescript] }
+ - node-latest-hook: {requires: [lint, compile-typescript] }
- cache: {requires: [release] }
- release:
context: org-global
@@ -154,6 +163,7 @@ workflows:
branches: {only: master}
requires:
- lint
+ - compile-typescript
- node-latest-base
- node-latest-single
- node-latest-plugin
@@ -170,21 +180,22 @@ workflows:
- master
jobs:
- lint
- - node-latest-base: {requires: [lint] }
- - node-latest-single: {requires: [lint] }
- - node-latest-plugin: {requires: [lint] }
- - node-latest-multi: {requires: [lint] }
- - node-latest-command: {requires: [lint] }
- - node-latest-hook: {requires: [lint] }
- - node-12-base: {requires: [lint] }
- - node-12-single: {requires: [lint] }
- - node-12-plugin: {requires: [lint] }
- - node-12-multi: {requires: [lint] }
- - node-12-command: {requires: [lint] }
- - node-12-hook: {requires: [lint] }
- - node-10-base: {requires: [lint] }
- - node-10-single: {requires: [lint] }
- - node-10-plugin: {requires: [lint] }
- - node-10-multi: {requires: [lint] }
- - node-10-command: {requires: [lint] }
- - node-10-hook: {requires: [lint] }
+ - compile-typescript
+ - node-latest-base: {requires: [lint, compile-typescript] }
+ - node-latest-single: {requires: [lint, compile-typescript] }
+ - node-latest-plugin: {requires: [lint, compile-typescript] }
+ - node-latest-multi: {requires: [lint, compile-typescript] }
+ - node-latest-command: {requires: [lint, compile-typescript] }
+ - node-latest-hook: {requires: [lint, compile-typescript] }
+ - node-12-base: {requires: [lint, compile-typescript] }
+ - node-12-single: {requires: [lint, compile-typescript] }
+ - node-12-plugin: {requires: [lint, compile-typescript] }
+ - node-12-multi: {requires: [lint, compile-typescript] }
+ - node-12-command: {requires: [lint, compile-typescript] }
+ - node-12-hook: {requires: [lint, compile-typescript] }
+ - node-10-base: {requires: [lint, compile-typescript] }
+ - node-10-single: {requires: [lint, compile-typescript] }
+ - node-10-plugin: {requires: [lint, compile-typescript] }
+ - node-10-multi: {requires: [lint, compile-typescript] }
+ - node-10-command: {requires: [lint, compile-typescript] }
+ - node-10-hook: {requires: [lint, compile-typescript] }

chore: add typescript compile ci job (#366)