diff --git a/.ansible-lint-ignore b/.ansible-lint-ignore new file mode 100644 index 0000000..6143e14 --- /dev/null +++ b/.ansible-lint-ignore @@ -0,0 +1,3 @@ +# This file contains ignores rule violations for ansible-lint +galaxy.yml galaxy[tags] +galaxy.yml galaxy[version-incorrect] diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml new file mode 100644 index 0000000..98df8dd --- /dev/null +++ b/.github/workflows/ansible-lint.yml @@ -0,0 +1,12 @@ +# .github/workflows/ansible-lint.yml +name: ansible-lint +"on": + pull_request: + branches: ["main", "stable", "release/v*"] +jobs: + build: + name: Ansible Lint # Naming the build is important to use it as a status check + runs-on: ubuntu-latest + steps: + - name: Run ansible-lint + uses: ansible/ansible-lint@main diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index be32c2e..77cb918 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -5,7 +5,7 @@ # If you need help please ask in #ansible-community on Libera.Chat IRC name: CI -on: +"on": # Run CI against all pushes (direct commits) and Pull Requests - push - pull_request diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 2fc98fd..03478e0 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -1,6 +1,6 @@ name: tox -on: +"on": create: # is used for publishing to PyPI and TestPyPI tags: # any tag regardless of its name, no branches push: # only publishes pushes to the main branch to TestPyPI diff --git a/.yamllint b/.yamllint index 27068f6..0d036b4 100644 --- a/.yamllint +++ b/.yamllint @@ -9,9 +9,13 @@ rules: brackets: max-spaces-inside: 1 level: error + comments: + # https://github.com/prettier/prettier/issues/6780 + min-spaces-from-content: 1 + + # https://github.com/adrienverge/yamllint/issues/141 + comments-indentation: false document-start: disable line-length: disable truthy: allowed-values: ['true', 'false', 'on'] - # https://github.com/adrienverge/yamllint/issues/141 - comments-indentation: disable diff --git a/galaxy.yml b/galaxy.yml index 24ce341..150ac32 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -2,7 +2,7 @@ namespace: community name: molecule -version: 0.1.0 +version: 1.0.0 readme: README.md authors: - Sorin Sbarnea (github/ssbarnea) @@ -10,6 +10,7 @@ description: Ansible Molecule collection contains molecule specific plugins. license: - MIT tags: + - application - molecule - testing repository: https://github.com/ansible-collections/community.molecule