From 150465a60008bb87633abc81c021913d78b2467e Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sun, 14 Aug 2022 18:44:16 +0200 Subject: [PATCH] ci: run eunit and proper tests per build profile --- .github/workflows/run_test_cases.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_test_cases.yaml b/.github/workflows/run_test_cases.yaml index 3b65fe885..b4b797621 100644 --- a/.github/workflows/run_test_cases.yaml +++ b/.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: