Skip to content

Commit 2d71fd8

Browse files
authored
test: add node 20, 22 (#9)
1 parent c658f98 commit 2d71fd8

4 files changed

Lines changed: 31 additions & 103 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ name: CI
33
on:
44
push:
55
branches: [ master ]
6-
76
pull_request:
87
branches: [ master ]
98

10-
workflow_dispatch: {}
11-
129
jobs:
1310
Job:
1411
name: Node.js
15-
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
12+
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
1613
with:
1714
os: 'ubuntu-latest'
18-
version: '8, 10, 12, 14, 16, 18'
15+
version: '8, 10, 12, 14, 16, 18, 20, 22'
16+
secrets:
17+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ on:
44
push:
55
branches: [ master ]
66

7-
workflow_dispatch: {}
8-
97
jobs:
108
release:
119
name: Node.js
12-
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
10+
uses: eggjs/github-actions/.github/workflows/node-release.yml@master
1311
secrets:
1412
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1513
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
16-
with:
17-
checkTest: false

README.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,31 @@
33
Router core component for [Egg.js](https://github.com/eggjs).
44

55
> **This repository is a fork of [koa-router](https://github.com/alexmingoia/koa-router).** with some additional features.
6-
7-
> And thanks for the greate work of @alexmingoia and the original team.
6+
> And thanks for the great work of @alexmingoia and the original team.
87
98
## API Reference
109

11-
* [egg-router](#module_egg-router)
12-
* [Router](#exp_module_egg-router--Router)
13-
* [new Router([opts])](#new_module_egg-router--Router_new)
14-
* _instance_
15-
* [.get|put|post|patch|delete|del](#module_egg-router--Router+get|put|post|patch|delete|del) ⇒ <code>Router</code>
16-
* [.routes](#module_egg-router--Router+routes) ⇒ <code>function</code>
17-
* [.use([path], middleware)](#module_egg-router--Router+use) ⇒ <code>Router</code>
18-
* [.prefix(prefix)](#module_egg-router--Router+prefix) ⇒ <code>Router</code>
19-
* [.allowedMethods([options])](#module_egg-router--Router+allowedMethods) ⇒ <code>function</code>
20-
* [.redirect(source, destination, [code])](#module_egg-router--Router+redirect) ⇒ <code>Router</code>
21-
* [.route(name)](#module_egg-router--Router+route) ⇒ <code>Layer</code> &#124; <code>false</code>
22-
* [.url(name, params, [options])](#module_egg-router--Router+url) ⇒ <code>String</code> &#124; <code>Error</code>
23-
* [.param(param, middleware)](#module_egg-router--Router+param) ⇒ <code>Router</code>
24-
* _static_
25-
* [.url(path, params)](#module_egg-router--Router.url) ⇒ <code>String</code>
10+
- [@eggjs/router](#eggjsrouter)
11+
- [API Reference](#api-reference)
12+
- [Router ⏏](#router-)
13+
- [new Router(\[opts\])](#new-routeropts)
14+
- [router.get|put|post|patch|delete|del ⇒ Router](#routergetputpostpatchdeletedel--router)
15+
- [Named routes](#named-routes)
16+
- [Multiple middleware](#multiple-middleware)
17+
- [Nested routers](#nested-routers)
18+
- [Router prefixes](#router-prefixes)
19+
- [URL parameters](#url-parameters)
20+
- [router.routes ⇒ function](#routerroutes--function)
21+
- [router.use(\[path\], middleware) ⇒ Router](#routerusepath-middleware--router)
22+
- [router.prefix(prefix) ⇒ Router](#routerprefixprefix--router)
23+
- [router.allowedMethods(\[options\]) ⇒ function](#routerallowedmethodsoptions--function)
24+
- [router.redirect(source, destination, \[code\]) ⇒ Router](#routerredirectsource-destination-code--router)
25+
- [router.route(name) ⇒ Layer | false](#routerroutename--layer--false)
26+
- [router.url(name, params, \[options\]) ⇒ String | Error](#routerurlname-params-options--string--error)
27+
- [router.param(param, middleware) ⇒ Router](#routerparamparam-middleware--router)
28+
- [Router.url(path, params \[, options\]) ⇒ String](#routerurlpath-params--options--string)
29+
- [Tests](#tests)
30+
- [License](#license)
2631

2732
<a name="exp_module_egg-router--Router"></a>
2833

@@ -412,3 +417,7 @@ const url = Router.url('/users/:id', {id: 1}, {query: { active: true }});
412417
## Tests
413418

414419
Run tests using `npm test`.
420+
421+
## License
422+
423+
[MIT](LICENSE)

0 commit comments

Comments
 (0)