From 94f31082eb4ebede00f4e86302de8f6a4fd43f31 Mon Sep 17 00:00:00 2001 From: woothu <32914662+woothu@users.noreply.github.com> Date: Thu, 30 Jan 2020 15:23:02 +0100 Subject: [PATCH] chore: add github CI --- CONTRIBUTING.md => .github/CONTRIBUTING.md | 4 +-- .../ISSUE_TEMPLATE.md | 0 .github/workflows/nodejs.yml | 31 +++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) rename CONTRIBUTING.md => .github/CONTRIBUTING.md (98%) rename ISSUE_TEMPLATE.md => .github/ISSUE_TEMPLATE.md (100%) create mode 100644 .github/workflows/nodejs.yml diff --git a/CONTRIBUTING.md b/.github/CONTRIBUTING.md similarity index 98% rename from CONTRIBUTING.md rename to .github/CONTRIBUTING.md index 59805de7..61302580 100644 --- a/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -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 ``` -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). diff --git a/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md similarity index 100% rename from ISSUE_TEMPLATE.md rename to .github/ISSUE_TEMPLATE.md diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..6a828a2d --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -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 \ No newline at end of file