react-native-webview
Version:
React Native WebView component for iOS, Android, and Windows 10 (coming soon)
67 lines (58 loc) • 1.35 kB
YAML
defaults:
working_directory: ~/code
docker:
- image: circleci/node:10.6.0-browsers
version: 2
jobs:
setup:
<<:
steps:
- checkout
- restore_cache:
name: Restore node modules
keys:
- node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn --pure-lockfile
- save_cache:
name: Save node modules
key: node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
tests:
<<:
steps:
- checkout
- restore_cache:
name: Restore node modules
keys:
- node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Run Tests
command: yarn ci:test
publish:
<<:
steps:
- checkout
- restore_cache:
name: Restore node modules
keys:
- node_modules-{{ arch }}-{{ checksum "yarn.lock" }}
- run:
name: Publish to NPM
command: yarn ci:publish
workflows:
version: 2
ci:
jobs:
- setup
- tests:
requires:
- setup
- publish:
requires:
- tests
filters:
branches:
only: master