diff --git a/.eslintrc.js b/.eslintrc.js
index 58e01fc..ed9eafd 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -5,4 +5,4 @@ module.exports = {
parserOptions: {
ecmaVersion: 2020,
},
-};
\ No newline at end of file
+};
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml
new file mode 100644
index 0000000..c61567a
--- /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: [14, 16, 18]
+ os: [ubuntu-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
+
+ - 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 d2c1dd6..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-language: node_js
-node_js:
- - 16
-before_install:
- - npm i npminstall -g
-install:
- - npminstall
-script:
- - npm run ci
-after_script:
- - npminstall codecov && codecov
diff --git a/README.md b/README.md
index 5023a97..455d3ae 100644
--- a/README.md
+++ b/README.md
@@ -100,9 +100,9 @@ Most likely network error, check that your `/etc/hosts` and make sure the conten
|[
xudafeng](https://github.com/xudafeng)
|[
fengmk2](https://github.com/fengmk2)
|[
ziczhu](https://github.com/ziczhu)
|[
gaearon](https://github.com/gaearon)
|[
chnliquan](https://github.com/chnliquan)
|[
popomore](https://github.com/popomore)
|
| :---: | :---: | :---: | :---: | :---: | :---: |
-[
snapre](https://github.com/snapre)
|[
antife-yinyue](https://github.com/antife-yinyue)
+[
snapre](https://github.com/snapre)
|[
yavuzakyuz](https://github.com/yavuzakyuz)
|[
antife-yinyue](https://github.com/antife-yinyue)
-This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sun Mar 20 2022 00:27:07 GMT+0800`.
+This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Wed Sep 21 2022 23:10:27 GMT+0800`.
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index c0683f4..0000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-environment:
- matrix:
- - nodejs_version: 16
-
-install:
- - ps: Install-Product node $env:nodejs_version
- - npm i npminstall && node_modules\.bin\npminstall
-
-test_script:
- - node --version
- - npm --version
- - npm run test
-
-build: off
diff --git a/package.json b/package.json
index 45cd909..f8c5f4b 100644
--- a/package.json
+++ b/package.json
@@ -26,10 +26,10 @@
},
"devDependencies": {
"command-line-test": "1",
- "egg-bin": "5",
- "egg-ci": "^1.1.0",
- "eslint": "^6.1.0",
- "eslint-config-egg": "^3.1.0",
+ "egg-bin": "^5.2.0",
+ "egg-ci": "^2.1.0",
+ "eslint": "^8.23.1",
+ "eslint-config-egg": "^12.0.0",
"git-contributor": "1",
"mm": "^2.1.0",
"pedding": "^1.1.0",
@@ -42,7 +42,8 @@
"contributor": "git-contributor"
},
"ci": {
- "version": "16"
+ "os": "linux",
+ "version": "14, 16, 18"
},
"homepage": "https://github.com/node-modules/detect-port",
"license": "MIT"
diff --git a/test/detect-port.test.js b/test/detect-port.test.js
index e43fcf7..af1b3a5 100644
--- a/test/detect-port.test.js
+++ b/test/detect-port.test.js
@@ -186,4 +186,4 @@ describe('test/detect-port.test.js', () => {
assert(typeof port === 'number');
});
});
-});
\ No newline at end of file
+});