Skip to content

Commit 3932540

Browse files
authored
feature(ContinuousIntegration): Add continuous integration to library.
2 parents 96fafff + 22f7a97 commit 3932540

File tree

6 files changed

+11810
-5797
lines changed

6 files changed

+11810
-5797
lines changed

.circleci/config.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:12.17.0
6+
working_directory: ~/repo
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
keys:
11+
- v1-dependencies-{{ checksum "package.json" }}
12+
# fallback to using the latest cache if no exact match is found
13+
- v1-dependencies-
14+
- run:
15+
name: Install Dependencies
16+
command: |
17+
npm install
18+
- save_cache:
19+
paths:
20+
- ./node_modules
21+
key: v1-dependencies-{{ checksum "package.json" }}
22+
- run:
23+
name: Build
24+
command: |
25+
npm run build
26+
- run:
27+
name: Test
28+
command: |
29+
npm run test:cov
30+
- run:
31+
name: Lint
32+
command: |
33+
npm run lint
34+
35+
release:
36+
docker:
37+
- image: circleci/node:12.17.0
38+
working_directory: ~/repo
39+
steps:
40+
- checkout
41+
- restore_cache:
42+
keys:
43+
- v1-dependencies-{{ checksum "package.json" }}
44+
# fallback to using the latest cache if no exact match is found
45+
- v1-dependencies-
46+
- run:
47+
name: Install Dependencies
48+
command: |
49+
npm install
50+
- run:
51+
name: Build
52+
command: |
53+
npm run build
54+
- run:
55+
name: Release
56+
command: |
57+
npx semantic-release
58+
59+
workflows:
60+
version: 2
61+
test_and_release:
62+
jobs:
63+
- build
64+
- release:
65+
requires:
66+
- build
67+
filters:
68+
branches:
69+
only: master

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ module.exports = {
2020
'@typescript-eslint/interface-name-prefix': 'off',
2121
'@typescript-eslint/explicit-function-return-type': 'off',
2222
'@typescript-eslint/no-explicit-any': 'off',
23+
'@typescript-eslint/explicit-module-boundary-types': 'off',
2324
},
2425
};

0 commit comments

Comments
 (0)