From 18b8675a675aecf1073490e9d76f7c197b90c536 Mon Sep 17 00:00:00 2001 From: Gustavo Carreno Date: Mon, 25 Sep 2023 03:36:27 +0100 Subject: [PATCH] fix: Removing test app from CI/CD Also: - Adding the example app to the CI/CD --- .github/workflows/build.yml | 11 +++++++---- tests/messages/polykerma.test.messages.pas | 3 ++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4d734b..0da6a98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,11 +31,14 @@ jobs: lazarus-version: ${{ matrix.lazarus-versions }} with-cache: false - - name: Build Test App - run: lazbuild -B "tests/polykermatests.lpi" + - name: Build Example App + run: lazbuild -B --bm=Release "examples/CLI/polykermacli.lpi" - - name: Run Tests - run: bin/polykermatests --all --format=plain +# - name: Build Test App +# run: lazbuild -B --bem=Release "tests/polykermatests.lpi" + +# - name: Run Tests +# run: bin/polykermatests --all --format=plain # - name: Build the Main App (Windows) # if: ${{ matrix.operating-system == 'windows-latest' }} diff --git a/tests/messages/polykerma.test.messages.pas b/tests/messages/polykerma.test.messages.pas index cf58b20..8f4b265 100644 --- a/tests/messages/polykerma.test.messages.pas +++ b/tests/messages/polykerma.test.messages.pas @@ -10,6 +10,7 @@ interface , fpcunit //, testutils , testregistry +, PolyKerma.Dispatcher.Common , PolyKerma.Messages.Interfaces , PolyKerma.Messages.Message ; @@ -29,7 +30,7 @@ implementation procedure TTestMessages.TestMessageCreate; begin - FMessage:= TInterfacedMessage.Create; + FMessage:= TInterfacedMessage.Create(cDispatcherChannelModuleIn); AssertNotNull('Message not null', FMessage); end;