Skip to content
This repository was archived by the owner on Feb 7, 2021. It is now read-only.

Commit 769c676

Browse files
authored
Merge pull request #5 from nestjs-addons/feature-add-ci-cd
ci: adding circle-ci config
2 parents bdd0416 + 9050d3c commit 769c676

File tree

2 files changed

+73
-11
lines changed

2 files changed

+73
-11
lines changed

.circleci/config.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
7+
defaults: &defaults
8+
working_directory: ~/repo
9+
docker:
10+
- image: circleci/node:10.16.0
11+
12+
jobs:
13+
test:
14+
<<: *defaults
15+
steps:
16+
- checkout
17+
18+
- restore_cache:
19+
keys:
20+
- v1-dependencies-{{ checksum "package.json" }}
21+
# fallback to using the latest cache if no exact match is found
22+
- v1-dependencies-
23+
24+
- run: npm install
25+
- run:
26+
name: Run tests
27+
command: npm test
28+
29+
- save_cache:
30+
paths:
31+
- node_modules
32+
key: v1-dependencies-{{ checksum "package.json" }}
33+
34+
- persist_to_workspace:
35+
root: ~/repo
36+
paths: .
37+
deploy:
38+
<<: *defaults
39+
steps:
40+
- attach_workspace:
41+
at: ~/repo
42+
- run:
43+
name: Authenticate with registry
44+
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
45+
- run:
46+
name: Publish package
47+
command: npm publish
48+
49+
workflows:
50+
version: 2
51+
test-deploy:
52+
jobs:
53+
- test:
54+
filters:
55+
tags:
56+
only: /^v.*/
57+
- deploy:
58+
requires:
59+
- test
60+
filters:
61+
tags:
62+
only: /^v.*/
63+
branches:
64+
ignore: /.*/

CONTRIBUTING.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Help us keep Nest open and inclusive. Please read and follow our [Code of Conduc
1717

1818
## <a name="question"></a> Got a Question or Problem?
1919

20-
**Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests.** You've got much better chances of getting your question answered on [Stack Overflow](https://stackoverflow.com/questions/tagged/nestjs) where the questions should be tagged with tag `nestjs`.
20+
**Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests.** You've got much better chances of getting your question answered on [Stack Overflow](https://stackoverflow.com/questions/tagged/-addons) where the questions should be tagged with tag `nestjs-addons`.
2121

2222
Stack Overflow is a much better place to ask questions since:
2323

@@ -56,7 +56,7 @@ Before you submit an issue, please search the issue tracker, maybe an issue for
5656

5757
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a minimal reproduction scenario using a repository or [Gist](https://gist.github.com/). Having a live, reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like:
5858

59-
- version of NestJS used
59+
- version of NestJS Addons - InMemory DB used
6060
- 3rd-party libraries and their versions
6161
- and most importantly - a use-case that fails
6262

@@ -69,17 +69,17 @@ A minimal reproduce scenario using a repository or Gist allows us to quickly con
6969

7070
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced.
7171

72-
You can file new issues by filling out our [new issue form](https://github.com/nestjs/nest/issues/new).
72+
You can file new issues by filling out our [new issue form](https://github.com/nestjs-addons/in-memory-db/issues/new).
7373

7474
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
7575

7676
Before you submit your Pull Request (PR) consider the following guidelines:
7777

78-
1. Search [GitHub](https://github.com/nestjs/nest/pulls) for an open or closed PR
78+
1. Search [GitHub](https://github.com/nestjs-addons/in-memory-db/pulls) for an open or closed PR
7979
that relates to your submission. You don't want to duplicate effort.
8080
<!-- 1. Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs.
8181
We cannot accept code without this. -->
82-
1. Fork the nestjs/nest repo.
82+
1. Fork the nestjs-addons/in-memory-db repo.
8383
1. Make your changes in a new git branch:
8484

8585
```shell
@@ -106,7 +106,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
106106
git push origin my-fix-branch
107107
```
108108

109-
1. In GitHub, send a pull request to `nestjs:master`.
109+
1. In GitHub, send a pull request to `nestjs-addons/in-memory-db:master`.
110110

111111
- If we suggest changes then:
112112

@@ -188,14 +188,14 @@ to read on GitHub as well as in various git tools.
188188
189189
Footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
190190
191-
Samples: (even more [samples](https://github.com/nestjs/nest/commits/master))
191+
Samples: (even more [samples](https://github.com/nestjs-addons/in-memory-db/commits/master))
192192
193193
```
194194
docs(changelog) update change log to beta.5
195195
```
196196
197197
```
198-
bugfix(@nestjs/core) need to depend on latest rxjs and zone.js
198+
bugfix(@nestjs-addons/in-memory-db) need to depend on latest rxjs and zone.js
199199
200200
The version in our package.json gets copied to the one we publish, and users need the latest of these.
201201
```
@@ -254,9 +254,7 @@ changes to be accepted, the CLA must be signed. It's a quick process, we promise
254254

255255
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
256256
[corporate-cla]: http://code.google.com/legal/corporate-cla-v1.0.html
257-
[dev-doc]: https://github.com/nestjs/nest/blob/master/docs/DEVELOPER.md
258-
[github]: https://github.com/nestjs/nest
259-
[gitter]: https://gitter.im/nestjs/nest
257+
[github]: https://github.com/nestjs-addons/in-memory-db
260258
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
261259
[js-style-guide]: https://google.github.io/styleguide/jsguide.html
262260
[jsfiddle]: http://jsfiddle.net

0 commit comments

Comments
 (0)