Moistbobo/react-native-panning-scrollview

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version: 2.1
orbs:
  rn: react-native-community/react-native@5.1.0

jobs:
  checkout_code:
    executor: rn/linux_js
    steps:
      - checkout
      - persist_to_workspace:
          root: .
          paths: .
  test-and-build:
    executor: rn/linux_js
    steps:
      - attach_workspace:
          at: .
      - rn/yarn_install
      - run:
          name: Test and report code coverage
          command: |
           curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
           chmod +x ./cc-test-reporter
           ./cc-test-reporter before-build
           yarn run test
           ./cc-test-reporter --coverage-input-type lcov after-build --exit-code $?
      - run:
          name: Compile typescript
          command: yarn run compile

workflows:
  node-tests:
    jobs:
      - checkout_code
      - test-and-build:
          requires:
            - checkout_code