Skip to content

Instantly share code, notes, and snippets.

@Minishlink
Created July 16, 2019 15:06
Show Gist options
  • Save Minishlink/85798d6a583be2ca5bb018a9f7139532 to your computer and use it in GitHub Desktop.
Save Minishlink/85798d6a583be2ca5bb018a9f7139532 to your computer and use it in GitHub Desktop.
React Native circleci config
version: 2
jobs:
build:
docker:
- image: circleci/node:10
environment:
TZ: '/usr/share/zoneinfo/Europe/Paris'
working_directory: ~/app
steps:
- checkout
- restore_cache:
keys:
- yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
- yarn-v1-{{ checksum "yarn.lock" }}
- yarn-v1-
- run: yarn --frozen-lockfile
- run: mkdir -p reports/junit
- run:
name: Lint
command: yarn test:lint --format junit -o reports/junit/js-lint-results.xml
- run:
name: Types
command: yarn test:types
- run:
name: Tests
command: yarn test:unit --ci --runInBand --testResultsProcessor="jest-junit" --coverage
environment:
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
- store_test_results:
path: reports/junit
- save_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
paths:
- ~/.cache/yarn
- node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment