Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
chore: Add CI using CircleCI [IS-2] (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal Nagar authored Mar 13, 2021
1 parent e23ca23 commit 7ab76e3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 2.1

commands:
setup:
steps:
- checkout
- run:
name: 'Login to npm'
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: yarn install --frozen-lockfile

executors:
node:
docker:
- image: circleci/node:14.16.0

jobs:
lint-build:
executor: node
steps:
- setup
- run:
name: Lint source code
command: yarn lint
- run:
name: Build distribution files
command: yarn build
- persist_to_workspace:
root: .
paths: .

workflows:
test-and-publish:
jobs:
- lint-build
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"lint": "eslint --fix src/ tests/ --ext .js,.ts,.tsx --max-warnings 0",
"start": "tsc && node dist/index.js",
"build": "tsc",
"test": "ts-mocha -p tsconfig.json tests/**/*.spec.ts -t 150000"
},
"husky": {
Expand Down

0 comments on commit 7ab76e3

Please sign in to comment.