|
@@ -145,6 +145,10 @@ jobs:
|
|
|
fail-fast: false
|
|
fail-fast: false
|
|
|
matrix:
|
|
matrix:
|
|
|
app_name: ${{ fromJson(needs.prepare.outputs.fast_ct_apps) }}
|
|
app_name: ${{ fromJson(needs.prepare.outputs.fast_ct_apps) }}
|
|
|
|
|
+ profile:
|
|
|
|
|
+ - emqx
|
|
|
|
|
+ - emqx-enterprise
|
|
|
|
|
+
|
|
|
runs-on: aws-amd64
|
|
runs-on: aws-amd64
|
|
|
container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04"
|
|
container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04"
|
|
|
defaults:
|
|
defaults:
|
|
@@ -163,8 +167,22 @@ jobs:
|
|
|
# produces <app-name>.coverdata
|
|
# produces <app-name>.coverdata
|
|
|
- name: run common test
|
|
- name: run common test
|
|
|
working-directory: source
|
|
working-directory: source
|
|
|
|
|
+ env:
|
|
|
|
|
+ PROFILE: ${{ matrix.profile }}
|
|
|
|
|
+ WHICH_APP: ${{ matrix.app_name }}
|
|
|
run: |
|
|
run: |
|
|
|
- make ${{ matrix.app_name }}-ct
|
|
|
|
|
|
|
+ if [ "$PROFILE" = 'emqx-enterprise' ]; then
|
|
|
|
|
+ COMPILE_FLAGS="$(grep -R "EMQX_RELEASE_EDITION" "$WHICH_APP" | wc -l || true)"
|
|
|
|
|
+ if [ "$COMPILE_FLAGS" -gt 0 ]; then
|
|
|
|
|
+ # need to clean first because the default profile was
|
|
|
|
|
+ make clean
|
|
|
|
|
+ make "${WHICH_APP}-ct"
|
|
|
|
|
+ else
|
|
|
|
|
+ echo "no_common_test_run_for_app ${WHICH_APP}"
|
|
|
|
|
+ fi
|
|
|
|
|
+ else
|
|
|
|
|
+ make "${WHICH_APP}-ct"
|
|
|
|
|
+ fi
|
|
|
- uses: actions/upload-artifact@v1
|
|
- uses: actions/upload-artifact@v1
|
|
|
with:
|
|
with:
|
|
|
name: coverdata
|
|
name: coverdata
|