Skip to content

Commit

Permalink
🤖 TEST: Run CI on Github Action (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Sep 21, 2022
1 parent ae55c95 commit 28f07b3
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Expand Up @@ -5,4 +5,4 @@ module.exports = {
parserOptions: {
ecmaVersion: 2020,
},
};
};
46 changes: 46 additions & 0 deletions .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 }}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -100,9 +100,9 @@ Most likely network error, check that your `/etc/hosts` and make sure the conten

|[<img src="https://avatars.githubusercontent.com/u/1011681?v=4" width="100px;"/><br/><sub><b>xudafeng</b></sub>](https://github.com/xudafeng)<br/>|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/1044425?v=4" width="100px;"/><br/><sub><b>ziczhu</b></sub>](https://github.com/ziczhu)<br/>|[<img src="https://avatars.githubusercontent.com/u/810438?v=4" width="100px;"/><br/><sub><b>gaearon</b></sub>](https://github.com/gaearon)<br/>|[<img src="https://avatars.githubusercontent.com/u/34906299?v=4" width="100px;"/><br/><sub><b>chnliquan</b></sub>](https://github.com/chnliquan)<br/>|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|
| :---: | :---: | :---: | :---: | :---: | :---: |
[<img src="https://avatars.githubusercontent.com/u/52845048?v=4" width="100px;"/><br/><sub><b>snapre</b></sub>](https://github.com/snapre)<br/>|[<img src="https://avatars.githubusercontent.com/u/197375?v=4" width="100px;"/><br/><sub><b>antife-yinyue</b></sub>](https://github.com/antife-yinyue)<br/>
[<img src="https://avatars.githubusercontent.com/u/52845048?v=4" width="100px;"/><br/><sub><b>snapre</b></sub>](https://github.com/snapre)<br/>|[<img src="https://avatars.githubusercontent.com/u/56271907?v=4" width="100px;"/><br/><sub><b>yavuzakyuz</b></sub>](https://github.com/yavuzakyuz)<br/>|[<img src="https://avatars.githubusercontent.com/u/197375?v=4" width="100px;"/><br/><sub><b>antife-yinyue</b></sub>](https://github.com/antife-yinyue)<br/>

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`.

<!-- GITCONTRIBUTOR_END -->

Expand Down
14 changes: 0 additions & 14 deletions appveyor.yml

This file was deleted.

11 changes: 6 additions & 5 deletions package.json
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/detect-port.test.js
Expand Up @@ -186,4 +186,4 @@ describe('test/detect-port.test.js', () => {
assert(typeof port === 'number');
});
});
});
});

0 comments on commit 28f07b3

Please sign in to comment.