Skip to content

Commit db3cf8f

Browse files
authored
Merge pull request #41 from cisco-en-programmability/develop
ci(workflows): add certification workflow and update ansible-core matrix
2 parents 4adb2c3 + a7e1b0e commit db3cf8f

2 files changed

Lines changed: 49 additions & 5 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Run collection certification checks
3+
4+
permissions:
5+
contents: read
6+
7+
on:
8+
pull_request:
9+
branches: [main]
10+
workflow_dispatch:
11+
schedule:
12+
- cron: "0 6 * * *"
13+
14+
concurrency:
15+
group: cert-ver-${{ github.head_ref || github.run_id }}
16+
cancel-in-progress: true
17+
18+
# Files that are not related to the core functionality
19+
# of your collection can cause Ansible Lint to fail.
20+
# If this happens, add a .ansible-lint file that includes
21+
# those files and directories to the root of your
22+
# repository; for example:
23+
# https://github.com/ansible-collections/partner-certification-checker/blob/main/.ansible-lint
24+
25+
# If there are sanity test failures that cannot be fixed and are allowed to ignore
26+
# https://docs.ansible.com/projects/lint/rules/sanity/, create a sanity ignore file
27+
# https://docs.ansible.com/projects/ansible/devel/dev_guide/testing/sanity/ignores.html#ignore-file-location
28+
# for each affected version of ansible-core (for example, `tests/sanity/ignore-2.18.txt`) and add corresponding entries.
29+
jobs:
30+
call:
31+
uses: ansible-collections/partner-certification-checker/.github/workflows/certification-reusable.yml@v2.0.0 # zizmor: ignore[unpinned-uses]
32+
# If the minimal Ansible Core version your collection supports Ansible
33+
# is greater than 2.16.0, specify it below.
34+
# You might also have to specify Python version supported by that version,
35+
# see https://docs.ansible.com/projects/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
36+
# with:
37+
# ansible-core-version: '2.17.0'
38+
# python-versions: '["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]'
39+
# collection-root: 'ansible_collections/junipernetworks/junos'
40+
# automation-hub: true
41+
# Uncomment the lines below if you have 'automation-hub: true' and need to install collections from Red Hat Ansible Automation Hub.
42+
# This requires setting a repository secret called 'AH_TOKEN' which value contains a Red Hat Ansible Automation Hub token.
43+
# secrets:
44+
# AH_TOKEN: ${{ secrets.AH_TOKEN }}

.github/workflows/sanity_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
strategy:
1818
matrix:
1919
ansible:
20-
- stable-2.17
21-
- stable-2.18
2220
- stable-2.19
21+
- stable-2.20
22+
- stable-2.21
2323
- devel
2424
include:
25-
- ansible: stable-2.17
25+
- ansible: stable-2.19
2626
python: '3.12'
27-
- ansible: stable-2.18
27+
- ansible: stable-2.20
2828
python: '3.12'
29-
- ansible: stable-2.19
29+
- ansible: stable-2.21
3030
python: '3.12'
3131
- ansible: devel
3232
python: '3.13'

0 commit comments

Comments
 (0)