From 32c45af828f8e729bdb087caf73607e50020be3f Mon Sep 17 00:00:00 2001 From: Victor Moene Date: Tue, 7 Jul 2026 13:54:59 +0200 Subject: [PATCH] Added dynamic lint workflow Ticket: CFE-4697 Signed-off-by: Victor Moene --- .github/workflows/cfengine_cli.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cfengine_cli.yml b/.github/workflows/cfengine_cli.yml index 1dab88dfb3..5beadf0a99 100644 --- a/.github/workflows/cfengine_cli.yml +++ b/.github/workflows/cfengine_cli.yml @@ -11,13 +11,26 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.14" - - name: Checkout masterfiles + - name: Checkout core uses: actions/checkout@v7 + with: + submodules: recursive - name: Install CFEngine CLI run: pipx install cfengine + - name: Install dependencies + run: ./ci/dependencies.sh + - name: Run autotools / configure + run: ./autogen.sh --enable-debug + - name: Compile and link (make) + run: make -j8 CFLAGS="-Werror -Wall" + - name: Install CFEngine + run: ./ci/install.sh + - name: Run cfengine lint run: | - cfengine lint --strict no ./ + /var/cfengine/bin/cf-promises --syntax-description json > /tmp/syntax.json + cfengine lint --syntax-description /tmp/syntax.json --strict no ./ + - name: Run cfengine format --check run: | cfengine format --check