Skip to content

Fixed search_up rendered in the functions table inside inline code #5

Fixed search_up rendered in the functions table inside inline code

Fixed search_up rendered in the functions table inside inline code #5

name: Lint and format
on: [push, pull_request]
permissions:
contents: read
jobs:
check:
name: Check formatting using CFEngine CLI
runs-on: ubuntu-24.04
steps:
- name: Checks-out repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install tools
run: |
npm install --global prettier
pipx install cfengine black
- name: Run cfengine format --check
run: |
cfengine format --check
- name: Run cfengine dev format-docs to (hopefully not) make changes
run: |
cfengine dev format-docs
- name: Check if there are changes
run: |
git diff --exit-code
- name: Run linting to identify other mistakes (inside code blocks)
run: |
cfengine dev lint-docs