Browse Source

💚 fix circle ci share commands

pull/3/head
Nicolas Beaussart 6 years ago
parent
commit
dbe421b270
No known key found for this signature in database GPG Key ID: 51D5A407BFCE64A9
  1. 32
      .circleci/config.yml

32
.circleci/config.yml

@ -1,18 +1,23 @@
version: 2
jobs:
node-latest: &test
docker:
- image: node:latest
working_directory: ~/cli
version: 2.1
commands:
setup_deps:
description: 'Setup cache and do a yarn install'
steps: steps:
- checkout - checkout
- restore_cache: &restore_cache
- restore_cache:
keys: keys:
- v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}} - v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
- v1-npm-{{checksum ".circleci/config.yml"}} - v1-npm-{{checksum ".circleci/config.yml"}}
- run: &yarn_install
- run:
name: Install dependencies name: Install dependencies
command: yarn command: yarn
jobs:
node-latest: &test
docker:
- image: node:latest
working_directory: ~/cli
steps:
- setup_deps
- run: ./bin/run --version - run: ./bin/run --version
- run: ./bin/run --help - run: ./bin/run --help
- run: - run:
@ -29,8 +34,7 @@ jobs:
prettier: prettier:
<<: *test <<: *test
steps: steps:
- checkout
- *yarn_install
- setup_deps
- run: - run:
name: Check prettier name: Check prettier
command: yarn format:check command: yarn format:check
@ -38,7 +42,9 @@ jobs:
<<: *test <<: *test
steps: steps:
- checkout - checkout
- *yarn_install
- run:
name: Install dependencies
command: yarn
- save_cache: - save_cache:
key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}} key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths: paths:
@ -48,9 +54,7 @@ jobs:
release: release:
<<: *test <<: *test
steps: steps:
- checkout
- *restore_cache
- *yarn_install
- setup_deps
- run: - run:
name: release name: release
command: yarn release || true command: yarn release || true

Loading…
Cancel
Save