Files
react-native-community-cli/.circleci/config.yml
T
Mike Grabowski 08962ecfc9 Add ESLint (#52)
* Fix skipped test for add file to project

* Add ESLint config and fix all the errors

* Use proper lint command

* Function is required here

* This file is unused

* Remove extraneous files and move utils to correct folders

* Add strict mode to global-cli again and use preset for other places

* Revert changes to debugger-ui for browser compatibility

* Revert changes in global-cli, package should run on older Node too
2018-12-19 17:49:48 +01:00

57 lines
1.2 KiB
YAML

version: 2
defaults: &defaults
docker:
- image: circleci/node:8
working_directory: ~/react-native-cli
jobs:
install-dependencies:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/react-native-cli
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}
- dependencies-
- run: yarn install
- save_cache:
key: dependencies-{{ checksum "package.json" }}
paths:
- node_modules
- persist_to_workspace:
root: .
paths:
- .
lint-and-flow:
<<: *defaults
steps:
- attach_workspace:
at: ~/react-native-cli
- run: |
yarn lint
yarn flow-check
tests:
<<: *defaults
steps:
- attach_workspace:
at: ~/react-native-cli
- run: yarn test
- store_artifacts:
path: coverage
destination: coverage
workflows:
version: 2
build-and-test:
jobs:
- install-dependencies
- lint-and-flow:
requires:
- install-dependencies
- tests:
requires:
- install-dependencies