Skip to content

Commit

Permalink
chore: auto release on github action (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 authored Aug 12, 2023
1 parent c87f19d commit a0425a4
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 43 deletions.
21 changes: 0 additions & 21 deletions .autod.conf.js

This file was deleted.

14 changes: 9 additions & 5 deletions .github/workflows/autoUnitTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ name: Run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [14.x, 16.x, 18.x, 20.x]
mongodb-version: ['6.0']

steps:
Expand All @@ -27,10 +29,12 @@ jobs:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Install dependencies
run: npm i -g npminstall && npminstall
run: npm i

- name: Run Unit Tests
run: npm run test-local

- name: Upload coverage
run: npm run ci

- name: Code Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release
on:
push:
branches: [ master ]

jobs:
release:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
install: 'npm install --legacy-peer-deps --no-package-lock --no-fund'
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
# egg-mongoose

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Run tests](https://github.com/eggjs/egg-mongoose/actions/workflows/autoUnitTest.yml/badge.svg)](https://github.com/eggjs/egg-mongoose/actions/workflows/autoUnitTest.yml)
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/egg-mongoose.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-mongoose
[travis-image]: https://img.shields.io/travis/eggjs/egg-mongoose.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-mongoose
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-mongoose.svg?style=flat-square
[codecov-url]: https://codecov.io/github/eggjs/egg-mongoose?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-mongoose.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-mongoose
[snyk-image]: https://snyk.io/test/npm/egg-mongoose/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-mongoose
[download-image]: https://img.shields.io/npm/dm/egg-mongoose.svg?style=flat-square
Expand All @@ -24,7 +20,7 @@ Egg's mongoose plugin.
## Install

```bash
$ npm i egg-mongoose --save
npm i egg-mongoose --save
```

## Configuration
Expand Down Expand Up @@ -178,3 +174,16 @@ If you are a contributor, follow [CONTRIBUTING](https://eggjs.org/zh-cn/contribu
## License

[MIT](LICENSE)

<!-- GITCONTRIBUTOR_START -->

## Contributors

|[<img src="https://avatars.githubusercontent.com/u/893152?v=4" width="100px;"/><br/><sub><b>jtyjty99999</b></sub>](https://github.com/jtyjty99999)<br/>|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src="https://avatars.githubusercontent.com/u/227713?v=4" width="100px;"/><br/><sub><b>atian25</b></sub>](https://github.com/atian25)<br/>|[<img src="https://avatars.githubusercontent.com/u/985607?v=4" width="100px;"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src="https://avatars.githubusercontent.com/u/17738556?v=4" width="100px;"/><br/><sub><b>BaffinLee</b></sub>](https://github.com/BaffinLee)<br/>|[<img src="https://avatars.githubusercontent.com/u/13268073?v=4" width="100px;"/><br/><sub><b>trylovetom</b></sub>](https://github.com/trylovetom)<br/>|
| :---: | :---: | :---: | :---: | :---: | :---: |
|[<img src="https://avatars.githubusercontent.com/u/9605663?v=4" width="100px;"/><br/><sub><b>ChangedenCZD</b></sub>](https://github.com/ChangedenCZD)<br/>|[<img src="https://avatars.githubusercontent.com/u/954064?v=4" width="100px;"/><br/><sub><b>hardywu</b></sub>](https://github.com/hardywu)<br/>|[<img src="https://avatars.githubusercontent.com/u/7105264?v=4" width="100px;"/><br/><sub><b>JasinYip</b></sub>](https://github.com/JasinYip)<br/>|[<img src="https://avatars.githubusercontent.com/u/549979?v=4" width="100px;"/><br/><sub><b>netputer</b></sub>](https://github.com/netputer)<br/>|[<img src="https://avatars.githubusercontent.com/u/52018749?v=4" width="100px;"/><br/><sub><b>Wai-Dung</b></sub>](https://github.com/Wai-Dung)<br/>|[<img src="https://avatars.githubusercontent.com/u/7284558?v=4" width="100px;"/><br/><sub><b>duncup</b></sub>](https://github.com/duncup)<br/>|
[<img src="https://avatars.githubusercontent.com/u/5010606?v=4" width="100px;"/><br/><sub><b>jinasonlin</b></sub>](https://github.com/jinasonlin)<br/>|[<img src="https://avatars.githubusercontent.com/u/8500303?v=4" width="100px;"/><br/><sub><b>legendecas</b></sub>](https://github.com/legendecas)<br/>|[<img src="https://avatars.githubusercontent.com/u/20775828?v=4" width="100px;"/><br/><sub><b>lzqmyb</b></sub>](https://github.com/lzqmyb)<br/>|[<img src="https://avatars.githubusercontent.com/u/70498637?v=4" width="100px;"/><br/><sub><b>DevXiaolan</b></sub>](https://github.com/DevXiaolan)<br/>|[<img src="https://avatars.githubusercontent.com/u/1774223?v=4" width="100px;"/><br/><sub><b>villins</b></sub>](https://github.com/villins)<br/>

This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Aug 12 2023 11:16:17 GMT+0800`.

<!-- GITCONTRIBUTOR_END -->
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,15 @@
"mongoose": "^7.2.2"
},
"devDependencies": {
"autod": "^3.1.2",
"bluebird": "^3.5.1",
"dotenv": "^7.0.0",
"egg": "^3.16.0",
"egg-bin": "^6.4.1",
"egg-mock": "^5.10.7",
"eslint": "^5.15.3",
"eslint-config-egg": "^7.1.0",
"eslint": "^8.47.0",
"eslint-config-egg": "^12.2.1",
"mocha": "^10.2.0",
"supertest": "^4.0.2",
"webstorm-disable-index": "^1.1.2"
"supertest": "^4.0.2"
},
"engines": {
"node": ">=14.0.0"
Expand All @@ -38,7 +36,7 @@
"cov": "egg-bin cov",
"lint": "eslint .",
"ci": "npm run lint && npm run cov",
"autod": "autod"
"contributor": "git-contributor"
},
"files": [
"index.js",
Expand All @@ -49,9 +47,6 @@
"app",
"lib"
],
"ci": {
"version": "14, 16, 18"
},
"repository": {
"type": "git",
"url": "git+https://github.com/eggjs/egg-mongoose.git"
Expand All @@ -60,4 +55,3 @@
"url": "https://github.com/eggjs/egg/issues"
}
}

0 comments on commit a0425a4

Please sign in to comment.