forked from cfengine/core
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.03 KB
/
Copy pathcfengine_cli.yml
File metadata and controls
36 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Lint policy and check formatting 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 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: |
/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