This is an automated email from the ASF dual-hosted git repository.

hufeng pushed a commit to branch dubbo3
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git


The following commit(s) were added to refs/heads/dubbo3 by this push:
     new 789fdd3  Create node.js.yml
789fdd3 is described below

commit 789fdd3f12abdeccbd8f02f8ba66e55f21f1bd11
Author: 胡锋 <[email protected]>
AuthorDate: Sun Oct 30 23:49:09 2022 +0800

    Create node.js.yml
---
 .github/workflows/node.js.yml | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
new file mode 100644
index 0000000..621dc5d
--- /dev/null
+++ b/.github/workflows/node.js.yml
@@ -0,0 +1,42 @@
+# 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: [dubbo3]
+  pull_request:
+    branches: [dubbo3]
+  schedule:
+    - cron: '0 2 * * *'
+
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+
+    strategy:
+      fail-fast: false
+      matrix:
+        node-version: [14, 16, 19]
+        os: [ubuntu-latest, windows-latest, macos-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 install -g pnpm && pnpm i
+
+      - name: Continuous Integration
+        run: pnpm test
+
+      - name: Code Coverage
+        uses: codecov/codecov-action@v1
+        with:
+          token: ${{ secrets.CODECOV_TOKEN }}

Reply via email to