فهرست منبع

ci: run eunit and proper tests per build profile

Zaiming (Stone) Shi 3 سال پیش
والد
کامیت
150465a600
1فایلهای تغییر یافته به همراه14 افزوده شده و 2 حذف شده
  1. 14 2
      .github/workflows/run_test_cases.yaml

+ 14 - 2
.github/workflows/run_test_cases.yaml

@@ -51,6 +51,12 @@ jobs:
     eunit_and_proper:
         needs: prepare
         runs-on: aws-amd64
+        strategy:
+          fail-fast: false
+          matrix:
+            profile:
+              - emqx
+              - emqx-enterprise
         defaults:
           run:
             shell: bash
@@ -63,14 +69,20 @@ jobs:
             name: source
             path: .
         - name: unzip source code
+          env:
+            PROFILE: ${{ matrix.profile }}
           run: unzip -o -q source.zip
           # produces eunit.coverdata
         - name: eunit
+          env:
+            PROFILE: ${{ matrix.profile }}
           working-directory: source
           run: make eunit
 
           # produces proper.coverdata
         - name: proper
+          env:
+            PROFILE: ${{ matrix.profile }}
           working-directory: source
           run: make proper
 
@@ -136,7 +148,7 @@ jobs:
         - uses: actions/upload-artifact@v1
           if: failure()
           with:
-            name: logs_${{ matrix.otp_release }}
+            name: logs_${{ matrix.otp_release }}-${{ matrix.profile }}
             path: source/_build/test/logs
 
     ct:
@@ -198,7 +210,7 @@ jobs:
         - uses: actions/upload-artifact@v3
           if: failure()
           with:
-            name: logs_${{ matrix.otp_release }}
+            name: logs_${{ matrix.otp_release }}-${{ matrix.profile }}
             path: source/_build/test/logs
 
     make_cover: