Skip to content

Instantly share code, notes, and snippets.

@vniche
Last active July 2, 2019 23:36
Show Gist options
  • Save vniche/dcf8a1b73a1319d8830d2917c491b19c to your computer and use it in GitHub Desktop.
Save vniche/dcf8a1b73a1319d8830d2917c491b19c to your computer and use it in GitHub Desktop.
CircleCI example workflow
# Example of a CircleCI's config file (.circleci/config.yml)
---
version: 2
jobs:
build:
docker:
- image: circleci/node:10
# choosing a neutral folder (/tmp) as it is commonly accessible by all users in most types of linuxes
working_directory: /tmp/repo
steps:
- checkout
# installs dependencies
- run: yarn
# builds distribution to folder build/
# ensure code is buildable for now
# TODO: save to cache and use to deployment
- run: yarn build
# run lint and tests
- run: |
yarn lint
yarn test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment