chore: add github CI

This commit is contained in:
woothu
2020-01-30 15:23:02 +01:00
parent e5dc6e2bfc
commit 94f31082eb
3 changed files with 33 additions and 2 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ Guidelines for bug reports:
1. **Use the GitHub issue search** — check if the issue has already been reported.
2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or development branch in the repository.
2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or `dev` branch in the repository.
3. **Isolate the problem** — ideally create a [reduced test case](https://css-tricks.com/reduced-test-cases/) and a live example. [This JS Bin](http://jsbin.com/lefey/1/edit?html,output) is a helpful template.
@@ -130,7 +130,7 @@ included in the project:
git push origin <topic-branch-name>
```
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description against the `master` branch.
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description into the `dev` branch.
**IMPORTANT**: By submitting a patch, you agree to allow the project owners to license your work under the terms of the [MIT License](LICENSE).
+31
View File
@@ -0,0 +1,31 @@
name: Node CI
on:
push:
pull_request:
schedule:
# build runs everyday at 6AM UTC
- cron: '0 6 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: project check
run: |
npm i
npm run release
env:
CI: true