From a2cb6a3c652c9616fcec418b73e31ea8569bdf6f Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 15 Jun 2024 22:39:43 +0800 Subject: [PATCH] test: node 22 (#7) ## Summary by CodeRabbit - **Documentation** - Added badges for known vulnerabilities and npm downloads to the README file. - **Chores** - Included CODECOV_TOKEN secret in the Node.js CI workflow. - Downgraded `eslint-config-egg` version in `package.json`. --- .github/workflows/nodejs.yml | 5 +++-- README.md | 6 ++++++ package.json | 8 ++++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d218ff0..774e7ea 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -3,7 +3,6 @@ name: CI on: push: branches: [ master ] - pull_request: branches: [ master ] @@ -13,4 +12,6 @@ jobs: uses: node-modules/github-actions/.github/workflows/node-test.yml@master with: os: 'ubuntu-latest' - version: '14, 16, 18, 20' + version: '14, 16, 18, 20, 22' + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index d49a126..3eebd84 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,15 @@ [![NPM version][npm-image]][npm-url] [![CI](https://github.com/eggjs/egg-path-matching/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-path-matching/actions/workflows/nodejs.yml) [![Test coverage](https://img.shields.io/codecov/c/github/eggjs/egg-path-matching.svg?style=flat-square)](https://codecov.io/gh/eggjs/egg-path-matching) +[![Known Vulnerabilities][snyk-image]][snyk-url] +[![npm download][download-image]][download-url] [npm-image]: https://img.shields.io/npm/v/egg-path-matching.svg?style=flat-square [npm-url]: https://npmjs.org/package/egg-path-matching +[snyk-image]: https://snyk.io/test/npm/egg-path-matching/badge.svg?style=flat-square +[snyk-url]: https://snyk.io/test/npm/egg-path-matching +[download-image]: https://img.shields.io/npm/dm/egg-path-matching.svg?style=flat-square +[download-url]: https://npmjs.org/package/egg-path-matching ## Installation diff --git a/package.json b/package.json index b8b8bb8..8d48785 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,9 @@ { "name": "egg-path-matching", "version": "1.1.0", + "engine": { + "node": ">= 4.0.0" + }, "description": "match or ignore url path", "main": "index.js", "files": [ @@ -34,10 +37,7 @@ "devDependencies": { "egg-bin": "^6.5.2", "eslint": "^8.55.0", - "eslint-config-egg": "^13.0.0", + "eslint-config-egg": "12", "git-contributor": "^2.1.5" - }, - "engine": { - "node": ">= 4.0.0" } }