Skip to content

Commit

Permalink
👷 feat: replace travisCI with circleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
niketpathak committed May 29, 2023
1 parent 74a4aaf commit 7d01097
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 20 deletions.
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

orbs:
# The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize
# Orbs reduce the amount of configuration required for common tasks.
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node
node: circleci/[email protected]

jobs:
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
build-and-unit-test:
# These next lines define a Docker executor: https://circleci.com/docs/2.0/executor-types/
# You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# A list of available CircleCI Docker Convenience Images are available here: https://circleci.com/developer/images/image/cimg/node
docker:
- image: cimg/node:16.10
# Then run your tests!
# CircleCI will report the results back to your VCS provider.
steps:
# Checkout the code as the first step.
- checkout
# Next, the node orb's install-packages step will install the dependencies from a package.json.
# The orb install-packages step will also automatically cache them for faster future runs.
- node/install-packages:
# If you are using yarn, change the line below from "npm" to "yarn"
pkg-manager: npm
- run:
name: Build app
command: make prod
- run:
name: Run unit test
command: make test


workflows:
# Below is the definition of your workflow.
# Inside the workflow, you provide the jobs you want to run, e.g the build-and-unit-test job and the cypress/run job.
# CircleCI will run this workflow on every commit.
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
my_workflow:
jobs:
- build-and-unit-test
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# :zap: localstorage-slim.js :zap:

[![npm version](https://img.shields.io/npm/v/localstorage-slim.svg)](https://www.npmjs.com/package/localstorage-slim)
[![Build Status](https://travis-ci.org/niketpathak/localstorage-slim.svg?branch=master)](https://travis-ci.org/niketpathak/localstorage-slim)
[![Build Status](https://img.shields.io/circleci/build/github/digitalfortress-tech/localstorage-slim/master)](https://app.circleci.com/pipelines/github/digitalfortress-tech/localstorage-slim?branch=master)
[![code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![CDN hits](https://data.jsdelivr.com/v1/package/npm/localstorage-slim/badge?style=rounded)](https://www.jsdelivr.com/package/npm/localstorage-slim)
![Downloads](https://img.shields.io/npm/dt/localstorage-slim)
Expand Down

0 comments on commit 7d01097

Please sign in to comment.