Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circleci project setup #40

Open
wants to merge 5 commits into
base: circleci-project-setup
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,7 @@
version: 2.1
jobs:
build-test:
docker:
# specify the version you desire here
- image: circleci/node:12

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: curl -o- -L https://yarnpkg.com/install.sh | bash
- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: yarn test
- run: yarn build

orbs:
node: circleci/[email protected]
workflows:
node-tests:
jobs:
- build-test
- node/test