Last active
July 2, 2019 23:36
-
-
Save vniche/dcf8a1b73a1319d8830d2917c491b19c to your computer and use it in GitHub Desktop.
CircleCI example workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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