Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -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 }}
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
55 changes: 30 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down