format: normalize quote style across single, double, and backtick strings #153
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow checks that linting works on real policy in other repos | |
| # and ensures we fix errors in policy before merging new linting rules | |
| # to CFEngine CLI | |
| name: Lint policy in other repos | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout cfengine-cli | |
| uses: actions/checkout@v4 | |
| with: | |
| path: cfengine-cli | |
| - name: Checkout masterfiles | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: cfengine/masterfiles | |
| path: masterfiles | |
| - name: Checkout documentation | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: cfengine/documentation | |
| path: documentation | |
| - name: Checkout modules | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: cfengine/modules | |
| path: modules | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| working-directory: cfengine-cli | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install uv | |
| make install | |
| - name: Check other repos with cfengine format and cfengine lint | |
| working-directory: cfengine-cli | |
| run: | | |
| # Linting should work with no errors on all the other repos: | |
| uv run cfengine lint --strict no ../masterfiles ../documentation ../modules | |
| # Formatting should work with no errors on all the other repos: | |
| uv run cfengine format ../masterfiles ../documentation ../modules | |
| # Linting should still work after formatting: | |
| uv run cfengine lint --strict no ../masterfiles ../documentation ../modules | |
| # TODO: Add core when ready | |
| # TODO: Do all of them together, with strict, when ready; | |
| # uv run cfengine lint ../core ../masterfiles ../documentation ../modules |