Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new workflow #81

Merged
merged 42 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6ee43bf
new workflow
fmunozmiranda Jan 7, 2025
5511d5b
Sanitys True => true, False => false
fmunozmiranda Jan 8, 2025
23b1284
sanity changes yml linting
fmunozmiranda Jan 8, 2025
6f38a43
sanity changes yml linting
fmunozmiranda Jan 8, 2025
d32e513
sanity changes yml linting changelog
fmunozmiranda Jan 8, 2025
861cb73
sanity changes yml linting changelog
fmunozmiranda Jan 8, 2025
e022c9c
sanity indent fixes
fmunozmiranda Jan 8, 2025
7cd3935
Revert "sanity indent fixes"
fmunozmiranda Jan 8, 2025
d811a5a
linting
fmunozmiranda Jan 8, 2025
44aa1ab
linting fixes
fmunozmiranda Jan 8, 2025
f02be23
linting fixes playbooks
fmunozmiranda Jan 8, 2025
0f3fa48
linting fixes modules
fmunozmiranda Jan 8, 2025
35d61b0
naming playbooks
fmunozmiranda Jan 8, 2025
eab975b
linting fixes modules
fmunozmiranda Jan 8, 2025
cebe041
linting fixes modules
fmunozmiranda Jan 8, 2025
cd7e8e1
remove old tests
fmunozmiranda Jan 8, 2025
3647f80
ansible-lint fixes
fmunozmiranda Jan 8, 2025
0f2352b
ansible-lint fixes
fmunozmiranda Jan 8, 2025
2379ec7
ansible-lint fixes
fmunozmiranda Jan 8, 2025
5dd9a57
ansible-lint fixes
fmunozmiranda Jan 8, 2025
6531b21
ansible-lint fixes
fmunozmiranda Jan 8, 2025
1f85c3d
ansible-lint fixes
fmunozmiranda Jan 8, 2025
c7fe216
ansible-lint fixes
fmunozmiranda Jan 8, 2025
7011dd6
ansible-lint fixes
fmunozmiranda Jan 8, 2025
ae0eb90
SANITY FIXES
fmunozmiranda Jan 8, 2025
5c7af22
SANITY FIXES
fmunozmiranda Jan 8, 2025
7c63118
ansible-lint fixes
fmunozmiranda Jan 8, 2025
a93f755
ansible-lint fixes
fmunozmiranda Jan 8, 2025
bd3844f
remove ignores
fmunozmiranda Jan 8, 2025
f0b39d0
change alias name: message
fmunozmiranda Jan 8, 2025
ed3863d
ansible-lint fixes
fmunozmiranda Jan 8, 2025
f809ba3
ansible-lint fixes
fmunozmiranda Jan 8, 2025
7c9e4c5
ansible-lint fixes
fmunozmiranda Jan 8, 2025
941ecc7
ansible-lint fixes
fmunozmiranda Jan 8, 2025
f563f9f
ansible-lint fixes
fmunozmiranda Jan 8, 2025
4da520e
ansible-lint fixes
fmunozmiranda Jan 8, 2025
90c0831
ansible-lint fixes
fmunozmiranda Jan 8, 2025
90644ea
ansible-lint fixes
fmunozmiranda Jan 8, 2025
d676380
ansible-lint fixes
fmunozmiranda Jan 8, 2025
16e413d
ansible-lint fixes
fmunozmiranda Jan 8, 2025
d3a019c
Ansible lint fixes
fmunozmiranda Jan 8, 2025
a1d4e6f
2.20.4:
fmunozmiranda Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .ansible-lint-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
workflows/docs.yml yaml[truthy]
workflows/docs.yml yaml[new-line-at-end-of-file]
workflows/docs.yml yaml[line-length]
workflows/docs.yml yaml[new-line-at-end-of-file]
workflows/sanity_tests.yml yaml[truthy]
workflows/ansible-lint.yml yaml[new-line-at-end-of-file]
.github/workflows/ansible-lint.yml yaml[new-line-at-end-of-file]
18 changes: 18 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# .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-24.04
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@main
with:
args: ""
setup_python: "true"
working_directory: ""
requirements_file: ""
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ jobs:
run: make doc
- name: commit docs
run: |
git checkout gh-pages
git checkout gh-pages || git checkout -b gh-pages
rm -rf $(basename ${GITHUB_REF})
mv docs/_build/html $(basename ${GITHUB_REF})
git show origin/main:docs/_gh_include/header.inc > index.html
(echo main; dirname v*/index.html | sort --version-sort --reverse) \
| xargs -I@@ \
-n1 echo '<div class="col-md-4 center"><a href="@@/" class="btn-doc btn"><i class="fa fa-newspaper-o"></i><p>@@</p></a></div>' >> index.html
-n1 echo '<div class="col-md-4 center"><a href="@@/" class="btn-doc btn">' \
'<i class="fa fa-newspaper-o"></i><p>@@</p></a></div>' >> index.html
git show origin/main:docs/_gh_include/footer.inc >> index.html
git add $(basename ${GITHUB_REF}) index.html
git commit -m "update docs for $(basename ${GITHUB_REF})" || true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sanity_tests.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: CI
on:
push:
branches: [ main ]
branches: [main]
pull_request:
schedule:
- cron: '0 6 * * *'
env:
NAMESPACE: cisco
COLLECTION_NAME: meraki
COLLECTION_NAME: meraki
jobs:
sanity:
name: Sanity (Ⓐ${{ matrix.ansible }})
Expand Down Expand Up @@ -37,4 +37,4 @@ jobs:
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- name: Run sanity tests
run: ansible-test sanity --docker -v --color
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ meraki_server
Create a playbook `who_am_i.yml` ([example](https://github.com/meraki/dashboard-api-ansible/blob/main/playbooks/who_am_i.yml)):
```
---
- hosts: meraki_servers
- name: Play Name
hosts: meraki_servers
gather_facts: false
tasks:
- name: Get my administered identities
Expand Down Expand Up @@ -139,10 +140,10 @@ The modules that were there before, usually with a `meraki` prefix, are maintain
```
- name: Create webhook
cisco.meraki.networks_webhooks_http_servers:
meraki_api_key: "{{meraki_api_key}}"
meraki_api_key: "{{ meraki_api_key }}"
state: present
name: Test_Hook
networkId: "{{network_id}}"
networkId: "{{ network_id }}"
payloadTemplate:
name: Slack (included)
payloadTemplateId: wpt_00001
Expand Down
Loading
Loading