From 06c1aeb97a2f6179acee018bdfcfee0b93b79194 Mon Sep 17 00:00:00 2001 From: YHH <359807859@qq.com> Date: Tue, 16 Jun 2020 12:46:40 +0800 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..77e6aa05 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,34 @@ +# 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: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: windows-latest + + strategy: + matrix: + node-version: [8.x] + + defaults: + run: + shell: cmd + working-directory: ./source + steps: + - 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 + - run: npm run build --if-present + - run: npm test