From 45e53b33e4eb621965c81e31beb12fbf2b92c8e1 Mon Sep 17 00:00:00 2001 From: Suyi Date: Wed, 29 Dec 2021 10:42:14 +0800 Subject: [PATCH] deps: update deps --- .github/workflows/nodejs.yml | 46 ++++++++++++++++++++++++++++++ .travis.yml | 6 ++-- package.json | 55 ++++++++++++++++++++---------------- 3 files changed, 80 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..ff98356c --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,46 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: + - main + - master + pull_request: + branches: + - main + - master + schedule: + - cron: '0 2 * * *' + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + node-version: [8] + os: [ubuntu-latest, windows-latest, macos-latest] + + steps: + - name: Checkout Git Source + uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Dependencies + run: npm i -g npminstall && npminstall + + - name: Continuous Integration + run: npm run ci + + - name: Code Coverage + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.travis.yml b/.travis.yml index 3e427f0e..a69eae77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,11 @@ -sudo: false + language: node_js node_js: - '8' +before_install: + - npm i npminstall -g install: - - npm i npminstall && npminstall + - npminstall script: - npm run ci after_script: diff --git a/package.json b/package.json index 9c82cfc4..da4e7d31 100644 --- a/package.json +++ b/package.json @@ -4,41 +4,46 @@ "description": "", "private": true, "dependencies": { + "autolinker": "^3.14.3", "await-stream-ready": "^1.0.1", "bcryptjs": "^2.4.3", - "data2xml": "^1.2.5", - "egg": "^2.2.1", + "data2xml": "^1.3.4", + "egg": "^2.33.1", "egg-alinode": "^2.0.1", - "egg-mongoose": "^2.1.1", - "egg-passport": "^2.0.1", + "egg-mongoose": "^3.3.1", + "egg-passport": "^2.1.1", "egg-passport-github": "^1.0.0", "egg-passport-local": "^1.2.1", - "egg-redis": "^2.0.0", - "egg-router-plus": "^1.2.0", - "egg-scripts": "^2.5.0", - "egg-validate": "^1.0.0", - "egg-view-ejs": "^2.0.0", + "egg-redis": "^2.4.0", + "egg-router-plus": "^2.0.0", + "egg-scripts": "^2.15.2", + "egg-validate": "^2.0.2", + "egg-view-ejs": "^2.0.1", "loader": "^2.1.1", - "loader-builder": "^2.6.0", "loader-koa": "^2.0.1", - "lodash": "^4.17.5", - "markdown-it": "^8.4.1", - "nodemailer": "^4.6.2", + "lodash": "^4.17.21", + "markdown-it": "^12.3.0", + "moment": "^2.29.1", + "mongoose": "^6.1.4", + "nodemailer": "^6.7.2", "nodemailer-smtp-transport": "^2.7.4", - "qiniu": "^7.1.3", - "stream-wormhole": "^1.0.3", - "uuid": "^3.2.1", - "validator": "^9.4.1", - "xmlbuilder": "^9.0.7" + "qiniu": "^7.4.0", + "stream-wormhole": "^1.1.0", + "utility": "^1.17.0", + "uuid": "^8.3.2", + "validator": "^13.7.0", + "webuploader": "^0.1.8", + "xmlbuilder": "^15.1.1", + "xss": "^1.0.10" }, "devDependencies": { - "autod": "^3.0.1", - "autod-egg": "^1.0.0", - "egg-bin": "^4.3.5", - "egg-ci": "^1.8.0", - "egg-mock": "^3.14.0", - "eslint": "^4.11.0", - "eslint-config-egg": "^6.0.0", + "autod": "^3.1.2", + "autod-egg": "^1.1.0", + "egg-bin": "^4.16.4", + "egg-ci": "^1.19.0", + "egg-mock": "^4.2.0", + "eslint": "^8.5.0", + "eslint-config-egg": "^10.0.0", "webstorm-disable-index": "^1.2.0" }, "engines": {