diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..b8dd570a --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + - cron: '0 2 * * *' + workflow_dispatch: {} + +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + node-version: [10, 12, 14] + 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 install + + - 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 deleted file mode 100644 index 1dfab273..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -sudo: false -language: node_js -node_js: - - "10" - - "12" - - "14" -env: - - EGG_VERSION=1 - - EGG_VERSION=2 -matrix: - exclude: - - node_js: "6" - env: EGG_VERSION=2 -before_install: - - npm install npminstall -g -install: - - sed -i.bak '/"egg":/d' package.json - - npminstall -d -script: - - eval "npminstall -d egg@$EGG_VERSION" - - npm run ci -after_script: - - npminstall codecov && codecov diff --git a/package.json b/package.json index 307083c0..ba06608a 100644 --- a/package.json +++ b/package.json @@ -9,25 +9,24 @@ "ets": "bin/ets.js" }, "dependencies": { - "autod": "^3.1.0", - "chalk": "^2.4.2", + "chalk": "^4.1.1", "co-mocha": "^1.2.2", "common-bin": "^2.9.0", - "debug": "^4.1.1", + "debug": "^4.3.1", "detect-port": "^1.3.0", - "egg-ts-helper": "^1.25.2", + "egg-ts-helper": "^1.25.9", "egg-utils": "^2.4.1", "espower-source": "^2.3.0", - "globby": "^9.2.0", + "globby": "^10.0.2", "inspector-proxy": "^1.2.1", - "intelli-espower-loader": "^1.0.1", - "jest-changed-files": "^24.7.0", + "intelli-espower-loader": "^1.1.0", + "jest-changed-files": "^27.0.2", "minimatch": "^3.0.4", "mocha": "^6.0.2", "mz-modules": "^2.1.0", "nyc": "^13.3.0", "power-assert": "^1.6.1", - "semver": "^6.0.0", + "semver": "^7.3.5", "source-map-support": "^0.5.19", "test-exclude": "^5.1.0", "ts-node": "^7", @@ -35,20 +34,20 @@ }, "devDependencies": { "@types/mocha": "^5.0.0", - "autod": "^3.1.0", + "autod": "^3.1.1", "babel": "^6.3.26", "babel-preset-airbnb": "^1.0.1", "babel-register": "^6.4.3", - "coffee": "^5.2.1", + "coffee": "^5.4.0", "cross-env": "^3.1.3", - "egg": "^2.20.2", - "egg-mock": "^3.22.1", + "egg": "^2.29.4", + "egg-mock": "^4.1.0", "enzyme": "^2.0.0", "esbuild-register": "^2.5.0", "eslint": "^4.12.1", "eslint-config-egg": "^7.3.1", "jsdom": "^8.0.1", - "mm": "^2.5.0", + "mm": "^3.2.0", "mz": "^2.7.0", "react": "^0.14.7", "react-addons-test-utils": "^0.14.7", @@ -85,4 +84,4 @@ "ci": { "version": "6, 8" } -} +} \ No newline at end of file