From 788c64baea3e5ec113cdf6c36f47c9bf4dc736e7 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 22 Apr 2021 14:41:10 -0400 Subject: cleaned up config --- .circleci/config.yml | 53 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1311b55c..df5b30bb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,6 +15,15 @@ jobs: - persist_to_workspace: paths: . root: . + lint_code: + executor: rn/linux_js + steps: + - attach_workspace: + at: . + - rn/yarn_install + - run: + command: yarn lint + name: Run ESLint (`yarn lint`) # Run linter, type-checker, and tests. analyze_code: executor: rn/linux_js @@ -25,27 +34,33 @@ jobs: - run: command: yarn lint name: Run ESLint (`yarn lint`) - # - run: - # command: yarn type - # name: Run TSC (`yarn type`) - # - run: - # command: yarn test - # name: Run Jest (`yarn test`) + - run: + command: yarn type + name: Run TSC (`yarn type`) + - run: + command: yarn test + name: Run Jest (`yarn test`) # Define workflows. workflows: - # Simple test workflow with iOS build. - test: + # Simple workflow for just linting + linter: jobs: - checkout_code - - analyze_code: - requires: - - checkout_code - # - rn/ios_build: - # name: build_ios_release - # project_path: ios/Frontend.xcodeproj - # device: 'iPhone 11' - # build_configuration: Debug - # scheme: Frontend - # requires: - # - analyze_code + - lint_code: + requires: + - checkout_code + # test: + # jobs: + # - checkout_code + # - lint_code: + # requires: + # - checkout_code + # - rn/ios_build: + # name: build_ios_release + # project_path: ios/Frontend.xcodeproj + # device: 'iPhone 11' + # build_configuration: Debug + # scheme: Frontend + # requires: + # - analyze_code -- cgit v1.2.3-70-g09d2