From c53a81555521e4b4484805c739d7dc875b43ea65 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Wed, 30 Nov 2022 12:52:51 +0100 Subject: [PATCH] ci: pre-compile test profile --- .github/workflows/run_test_cases.yaml | 6 ++++-- Makefile | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_test_cases.yaml b/.github/workflows/run_test_cases.yaml index cb4e1e409..7c6b039fc 100644 --- a/.github/workflows/run_test_cases.yaml +++ b/.github/workflows/run_test_cases.yaml @@ -44,7 +44,8 @@ jobs: run: | make ensure-rebar3 # fetch all deps and compile - make + make emqx + make test-compile cd .. zip -ryq source.zip source/* source/.[^.]* - uses: actions/upload-artifact@v3 @@ -69,7 +70,8 @@ jobs: run: | make ensure-rebar3 # fetch all deps and compile - make + make emqx-enterprise + make test-compile cd .. zip -ryq source.zip source/* source/.[^.]* - uses: actions/upload-artifact@v3 diff --git a/Makefile b/Makefile index 311aed651..8cec47020 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,10 @@ eunit: $(REBAR) conf-segs proper: $(REBAR) @ENABLE_COVER_COMPILE=1 $(REBAR) proper -d test/props -c +.PHONY: test-compile +test-compile: $(REBAR) conf-segs + $(REBAR) as test compile + .PHONY: ct ct: $(REBAR) conf-segs @ENABLE_COVER_COMPILE=1 $(REBAR) ct --name $(CT_NODE_NAME) -c -v --cover_export_name $(PROFILE)-ct