diff --git a/.ansible-lint b/.ansible-lint index ba5a888..42b02de 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -7,5 +7,9 @@ skip_list: - meta-runtime[unsupported-version] # This rule doesn't make any sense - fqcn[deep] # This rule produces false positives for files in tests/unit/plugins/action/fixtures/ - sanity[cannot-ignore] # This rule is skipped to keep backward compatibility with Python 2 + exclude_paths: - changelogs/ + - .github/ + - tests/ + - meta/ diff --git a/.github/workflows/certification.yml b/.github/workflows/certification.yml new file mode 100644 index 0000000..04148d3 --- /dev/null +++ b/.github/workflows/certification.yml @@ -0,0 +1,35 @@ +--- +# This workflow calls the latest version of the +# reusable workflow. +# You can copy this file into your respository if +# you want to check against pinned versions of +# Automation Hub tests. +name: Run collection certification checks + +on: + pull_request: + branches: [main] + workflow_dispatch: + schedule: + - cron: '0 6 * * *' + +concurrency: + group: cert-ver-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + + +# Files that are not related to the core functionality +# of your collection can cause Ansible Lint to fail. +# If this happens, add an .ansible-lint file that includes +# those files and directories to the root of your +# repository; for example: +# https://github.com/ansible-collections/partner-certification-checker/blob/main/.ansible-lint +# https://github.com/ansible-collections/partner-certification-checker/blob/main/.ansible-lint + +# If there are sanity test failures that cannot be fixed and are allowed to ignore +# https://docs.ansible.com/projects/lint/rules/sanity/, create a sanity ignore file +# https://docs.ansible.com/projects/ansible/devel/dev_guide/testing/sanity/ignores.html#ignore-file-location +# for each affected version of ansible-core (for example, `tests/sanity/ignore-2.18.txt`) and add corresponding entries. +jobs: + call: + uses: ansible-collections/partner-certification-checker/.github/workflows/certification-reusable.yml@v0.1