Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/cfengine_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint policy with CFEngine CLI
on:
workflow_call:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Checkout masterfiles
uses: actions/checkout@v4
- name: Install CFEngine CLI
run: pipx install cfengine
- name: Run cfengine lint
run: |
cfengine lint --strict no ./
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ on:
jobs:
style_check:
uses: ./.github/workflows/style_check.yml
cfengine_lint:
uses: ./.github/workflows/cfengine_lint.yml
bootstrap_policy_run_check:
needs: style_check
needs: [style_check, cfengine_lint]
uses: ./.github/workflows/bootstrap_policy_run_check.yml
tests:
needs: bootstrap_policy_run_check
Expand Down
Loading