diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index 876e6bb..db03336 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -12,7 +12,6 @@ on: - main - testing - dependabot/** - # - renovate/** paths-ignore: - '**/README.md' - '**/CHANGELOG.md' @@ -21,8 +20,7 @@ on: pull_request: pull_request_target: schedule: - # - cron: '1 1 1 * *' - - cron: '1 1 * * *' + - cron: '1 1 1/1 * *' workflow_dispatch: @@ -36,10 +34,10 @@ jobs: lint: runs-on: ubuntu-20.04 steps: - - name: checkout + - name: Checkout Role uses: actions/checkout@v4 - - name: ansible-lint - uses: ansible-community/ansible-lint-action@main + - name: Run Ansible-lint + uses: ansible/ansible-lint@v24.7.0 test: needs: - lint @@ -54,20 +52,18 @@ jobs: tag: "buster" - image: "docker-molecule-images" tag: "bullseye" + - image: "docker-molecule-images" + tag: "38" - image: "docker-molecule-images" tag: "39" - image: "docker-molecule-images" tag: "40" - - image: "docker-molecule-images" - tag: "rawhide" - image: "docker-molecule-images" tag: "ubuntu_latest" - image: "docker-molecule-images" tag: "focal" - image: "docker-molecule-images" tag: "jammy" - - image: "docker-molecule-images" - tag: "lunar" - image: "docker-molecule-images" tag: "noble" steps: @@ -80,8 +76,6 @@ jobs: with: image: ${{ matrix.config.image }} tag: ${{ matrix.config.tag }} - - name: Running Role Test - run: ansible-galaxy role import --api-key ${{ secrets.galaxy_api_key }} buluma ${{ github.event.repository.name }} dependabot: needs: diff --git a/.yamllint b/.yamllint index 1460f2c..1d2600f 100644 --- a/.yamllint +++ b/.yamllint @@ -1,17 +1,27 @@ --- extends: default - +# https://ansible.readthedocs.io/projects/lint/rules/yaml/#octals rules: + comments: + # https://github.com/prettier/prettier/issues/6780 + min-spaces-from-content: 1 + # https://github.com/adrienverge/yamllint/issues/384 + comments-indentation: false + document-start: disable + # 160 chars was the default used by old E204 rule, but + # you can easily change it or disable in your .yamllint file. + line-length: + max: 310 + # We are adding an extra space inside braces as that's how prettier does it + # and we are trying not to fight other linters. braces: - max-spaces-inside: 1 - level: error - brackets: - max-spaces-inside: 1 - level: error - line-length: disable - truthy: - check-keys: false - -ignore: | - .tox/ - .cache/ + min-spaces-inside: 0 # yamllint defaults to 0 + max-spaces-inside: 1 # yamllint defaults to 0 + # key-duplicates: + # forbid-duplicated-merge-keys: true # not enabled by default + octal-values: + forbid-implicit-octal: true # yamllint defaults to false + forbid-explicit-octal: true # yamllint defaults to false + # quoted-strings: + # quote-type: double + # required: only-when-needed