summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/nxos/.github
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/cisco/nxos/.github')
-rw-r--r--ansible_collections/cisco/nxos/.github/dependabot.yml10
-rw-r--r--ansible_collections/cisco/nxos/.github/workflows/test.yml45
2 files changed, 55 insertions, 0 deletions
diff --git a/ansible_collections/cisco/nxos/.github/dependabot.yml b/ansible_collections/cisco/nxos/.github/dependabot.yml
new file mode 100644
index 00000000..b6559bdc
--- /dev/null
+++ b/ansible_collections/cisco/nxos/.github/dependabot.yml
@@ -0,0 +1,10 @@
+---
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: daily
+ open-pull-requests-limit: 3
+ labels:
+ - "skip-changelog"
diff --git a/ansible_collections/cisco/nxos/.github/workflows/test.yml b/ansible_collections/cisco/nxos/.github/workflows/test.yml
new file mode 100644
index 00000000..1fcf4c9a
--- /dev/null
+++ b/ansible_collections/cisco/nxos/.github/workflows/test.yml
@@ -0,0 +1,45 @@
+name: Test collection
+
+concurrency:
+ group: ${{ github.head_ref }}
+ cancel-in-progress: true
+
+on:
+ pull_request:
+ branches: [main]
+ workflow_dispatch:
+
+jobs:
+ ansible-lint:
+ uses: ansible-network/github_actions/.github/workflows/ansible-lint.yml@main
+ changelog:
+ uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
+ sanity:
+ uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
+ unit-galaxy:
+ uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main
+ unit-source:
+ uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
+ with:
+ collection_pre_install: >-
+ git+https://github.com/ansible-collections/ansible.utils.git
+ git+https://github.com/ansible-collections/ansible.netcommon.git
+
+ all_green:
+ if: ${{ always() }}
+ needs:
+ - ansible-lint
+ - changelog
+ - sanity
+ - unit-galaxy
+ - unit-source
+ runs-on: ubuntu-latest
+ steps:
+ - run: >-
+ python -c "assert set([
+ '${{ needs.ansible-lint.result }}',
+ '${{ needs.changelog.result }}',
+ '${{ needs.sanity.result }}',
+ '${{ needs.unit-galaxy.result }}',
+ '${{ needs.unit-source.result }}'
+ ]) == {'success'}"