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:
- checkout
- restore_cache: &restore_cache
- restore_cache:
keys:
- v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
- v1-npm-{{checksum ".circleci/config.yml"}}
- run: &yarn_install
- run:
name: Install dependencies
command: yarn
jobs:
node-latest: &test
docker:
- image: node:latest
working_directory: ~/cli
steps:
- setup_deps
- run: ./bin/run --version
- run: ./bin/run --help
- run:
@ -29,8 +34,7 @@ jobs:
prettier:
<<: *test
steps:
- checkout
- *yarn_install
- setup_deps
- run:
name: Check prettier
command: yarn format:check
@ -38,7 +42,9 @@ jobs:
<<: *test
steps:
- checkout
- *yarn_install
- run:
name: Install dependencies
command: yarn
- save_cache:
key: v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths:
@ -48,9 +54,7 @@ jobs:
release:
<<: *test
steps:
- checkout
- *restore_cache
- *yarn_install
- setup_deps
- run:
name: release
command: yarn release || true

Loading…
Cancel
Save