ci: run eunit and proper tests per build profile
This commit is contained in:
parent
9346d5d0fd
commit
150465a600
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue