You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/09/03 10:53:51 UTC

[apisix-dashboard] branch master updated: feat: added multiple node builds action (#438)

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

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new b34d5f5  feat: added multiple node builds action (#438)
b34d5f5 is described below

commit b34d5f524bb7da2b1a2eb13916a44d7539c510a5
Author: 琚致远 <ju...@apache.org>
AuthorDate: Thu Sep 3 18:53:44 2020 +0800

    feat: added multiple node builds action (#438)
---
 .github/workflows/{ci.yml => multiple-node-build.yml} | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/multiple-node-build.yml
similarity index 68%
rename from .github/workflows/ci.yml
rename to .github/workflows/multiple-node-build.yml
index 138d78b..00dafb9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/multiple-node-build.yml
@@ -1,6 +1,6 @@
 # This is a basic test to build the dashboard
 
-name: CI
+name: multiple-node-build
 
 # Controls when the action will run. Triggers the workflow on push or pull request
 # events but only for the master branch
@@ -17,16 +17,22 @@ jobs:
     # The type of runner that the job will run on
     runs-on: ubuntu-latest
 
+    strategy:
+      matrix:
+        node-version: [10.x, 12.x, 14.x]
+
     # Steps represent a sequence of tasks that will be executed as part of the job
     steps:
     # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
     - uses: actions/checkout@v2
-    - uses: actions/setup-node@v2.1.1
+    - name: Use Node.js ${{ matrix.node-version }}
+      uses: actions/setup-node@v1
+      with:
+        node-version: ${{ matrix.node-version }}
   
-    # Install packages
-    - name: Install packages
+    # Install dependencies
+    - name: Install dependencies
       run: yarn
 
-    # Build the dashboard
-    - name: Build the application
+    - name: Build the Dashboard
       run: yarn build