aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-22 14:41:10 -0400
committerIvan Chen <ivan@tagg.id>2021-04-22 14:41:10 -0400
commit788c64baea3e5ec113cdf6c36f47c9bf4dc736e7 (patch)
tree9cdf489732f319f0bcfd0471aa2a03842a9466b8 /.circleci
parent65261288bee6238e91e74807c8baad8501abf5c5 (diff)
cleaned up config
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml53
1 files 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