From 67c09534d8778d8264c3569919b82b7304137c77 Mon Sep 17 00:00:00 2001 From: Xiao Kang Date: Fri, 15 Nov 2019 11:14:42 +0800 Subject: [PATCH 1/2] Create nodejs.yml --- .github/workflows/nodejs.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..c7cca4f --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,25 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci + npm test + env: + CI: true From 457a9d92818b1eed7c8a799951e31258fb944ba2 Mon Sep 17 00:00:00 2001 From: Xiao Kang Date: Fri, 15 Nov 2019 11:17:22 +0800 Subject: [PATCH 2/2] Update nodejs.yml --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c7cca4f..91d2550 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -19,7 +19,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: npm install, build, and test run: | - npm ci + npm install npm test env: CI: true