From 748efef77d3294c41914fad3ea007b43f15b7ee6 Mon Sep 17 00:00:00 2001 From: sineverba Date: Sun, 28 Feb 2021 08:45:18 +0100 Subject: [PATCH] Add Circle CI --- .circleci/config.yml | 17 +++++++++++++++++ CHANGELOG.md | 1 + README.md | 1 + 3 files changed, 19 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c25061e --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,17 @@ +version: 2.1 +jobs: + + test: + docker: + - image: cimg/node:12.21.0 + + steps: + - checkout + - run: npm ci + - run: npm run test + +workflows: + version: 2 + test: + jobs: + - test \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ef4f08..660527d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Next version + Set default node version + Change test suite ++ Add Circle CI ## 0.3.0 + Add badges diff --git a/README.md b/README.md index caad12a..3585214 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ | ------- | ------ | | NPM | [![npm version](https://badge.fury.io/js/shortfield.svg)](https://badge.fury.io/js/shortfield) | | Semaphore CI | [![Build Status](https://sineverba.semaphoreci.com/badges/npm-pkg-shortfield/branches/master.svg)](https://sineverba.semaphoreci.com/projects/npm-pkg-shortfield) | +| Circle CI | [![CircleCI](https://circleci.com/gh/sineverba/npm-pkg-shortfield.svg?style=svg)](https://circleci.com/gh/sineverba/npm-pkg-shortfield) | | Coverall | [![Coverage Status](https://coveralls.io/repos/github/sineverba/npm-pkg-shortfield/badge.svg?branch=master)](https://coveralls.io/github/sineverba/npm-pkg-shortfield?branch=master) | `shortfield` returns a string truncated after X characters (default 10), concatenated with "..." (three dots).