Skip to content

Instantly share code, notes, and snippets.

@jukbot
Created March 6, 2018 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jukbot/5832fa1319100cc846d9396b682ca09a to your computer and use it in GitHub Desktop.
Save jukbot/5832fa1319100cc846d9396b682ca09a to your computer and use it in GitHub Desktop.
CircleCi
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
working_directory: ~/bluezebra
docker:
# specify the version you desire here
- image: circleci/node:latest
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- dependency-cache-{{ checksum "yarn.lock" }}
- dependency-cache
- run:
name: Install Dependencies
command: yarn --frozen-lockfile
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run:
name: Run liner
command: yarn lint
- run:
name: Run build
command: yarn build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment