From 2eb4d46bc84d15edf2295e5b528cdd2d3f6dfb19 Mon Sep 17 00:00:00 2001 From: Leon Jiang <35908040+leonyjiang@users.noreply.github.com> Date: Mon, 22 Mar 2021 03:14:25 -0400 Subject: Create Circle CI config --- .circleci/config.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..8878e2e3 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,50 @@ +# Specify CircleCI version. +version: 2.1 + +# Invoke the react-native orb. +orbs: + rn: react-native-community/react-native@5.0.0 + +# Define runnable jobs. +jobs: + # Check out source code and persist root. + checkout_code: + executor: rn/linux_js + steps: + - checkout + - persist_to_workspace: + root: . + paths: . + # Run linter, type-checker, and tests. + analyze_code: + executor: rn/linux_js + steps: + - attach_workspace: + at: . + - rn/yarn_install + - run: + name: Run ESLint (`yarn lint`) + command: yarn lint + - run: + name: Run TSC (`yarn type`) + command: yarn type + - run: + name: Run Jest (`yarn test`) + command: yarn test + +# Define workflows. +workflows: + # Simple test workflow with iOS build. + test: + jobs: + - checkout_code + - analyze_code: + requries: -checkout_code + - rn/ios_build: + name: build_ios_release + project_path: ios/Frontend.xcodeproj + device: 'iPhone 11' + build_configuration: Release + scheme: Frontend + requires: + - analyze_code -- cgit v1.2.3-70-g09d2