@protonapp/react-native-material-ui
Version:
React Native Material Design Components
87 lines (76 loc) • 1.67 kB
YAML
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
# Used Workspace
workspace:
~/mui
# Config for node
node_config:
working_directory:
docker:
- image: circleci/node:8
# Key to cache gradle dependecies
yarn_key:
yarn-cache-{{ checksum "yarn.lock" }}
jobs:
install-dependencies:
<<:
steps:
- checkout
- attach_workspace:
at:
- restore_cache:
key:
- run:
name: Intal yarn dependencies
command: yarn
- save_cache:
key:
paths: node_modules
- persist_to_workspace:
root: .
paths: .
lint:
<<:
steps:
- attach_workspace:
at:
- run:
name: Lint
command: yarn lint
test:
<<:
steps:
- attach_workspace:
at:
- run:
name: Jest
command: yarn test
publish:
<<:
steps:
- attach_workspace:
at:
- run:
name: Publish
command: yarn semantic-release
workflows:
version: 2
test-and-deploy:
jobs:
- install-dependencies
- lint:
requires:
- install-dependencies
- test:
requires:
- install-dependencies
- publish:
requires:
- lint
- test
filters:
branches:
only: 'master'