diff options
-rw-r--r-- | .circleci/config.yml | 50 |
1 files changed, 50 insertions, 0 deletions
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 |