summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/certification.yml51
-rw-r--r--.github/workflows/tests.yml5
2 files changed, 54 insertions, 2 deletions
diff --git a/.github/workflows/certification.yml b/.github/workflows/certification.yml
new file mode 100644
index 00000000..cd699aea
--- /dev/null
+++ b/.github/workflows/certification.yml
@@ -0,0 +1,51 @@
+---
+# This workflow calls a pinned version of the
+# reusable workflow. Copy this file into your
+# repository to check against pinned versions
+# of Automation Hub tests.
+# The version is pinned to an exact release tag
+# (e.g. @v1.2.0) for supply chain security.
+# Use Dependabot to receive automatic PRs when
+# new versions are released.
+name: Run collection certification checks
+
+permissions:
+ contents: read
+
+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
+
+# 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@v6.0.0 # zizmor: ignore[unpinned-uses]
+ # For details on tested ansible-core branches and Python versions,
+ # see: https://github.com/ansible-collections/partner-certification-checker#tested-ansible-core-branches-and-python-versions
+ with:
+ # ansible-core-version: '2.18.0'
+ # skip-sanity-versions: 'stable-2.16'
+ # collection-root: 'ansible_collections/junipernetworks/junos'
+ collection-deps: 'ansible.netcommon'
+ # automation-hub: true
+ # Uncomment the lines below if you have 'automation-hub: true' and need to install collections from Red Hat Ansible Automation Hub.
+ # This requires setting a repository secret called 'AH_TOKEN' which value contains a Red Hat Ansible Automation Hub token.
+ # secrets:
+ # AH_TOKEN: ${{ secrets.AH_TOKEN }}
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index dedbc9e5..6086077c 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -46,7 +46,8 @@ jobs:
set([
'${{ needs.changelog.result }}',
'${{ needs.sanity.result }}',
- '${{ needs.unit-galaxy.result }}'
- '${{ needs.ansible-lint.result }}'
+ '${{ needs.unit-galaxy.result }}',
+ '${{ needs.ansible-lint.result }}',
+ '${{ needs.build-import.result }}',
'${{ needs.unit-source.result }}'
])"