summaryrefslogtreecommitdiffstats
path: root/ansible_collections/splunk/es/.github
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ansible_collections/splunk/es/.github/CODEOWNERS0
-rw-r--r--ansible_collections/splunk/es/.github/dependabot.yml9
-rw-r--r--ansible_collections/splunk/es/.github/release-drafter.yml3
-rw-r--r--ansible_collections/splunk/es/.github/workflows/ack.yml15
-rw-r--r--ansible_collections/splunk/es/.github/workflows/codecoverage.yml15
-rw-r--r--ansible_collections/splunk/es/.github/workflows/lint.yml13
-rw-r--r--ansible_collections/splunk/es/.github/workflows/push.yml27
-rw-r--r--ansible_collections/splunk/es/.github/workflows/release.yml14
-rw-r--r--ansible_collections/splunk/es/.github/workflows/test.yml41
-rw-r--r--ansible_collections/splunk/es/.github/workflows/tests.yml46
10 files changed, 142 insertions, 41 deletions
diff --git a/ansible_collections/splunk/es/.github/CODEOWNERS b/ansible_collections/splunk/es/.github/CODEOWNERS
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/CODEOWNERS
diff --git a/ansible_collections/splunk/es/.github/dependabot.yml b/ansible_collections/splunk/es/.github/dependabot.yml
new file mode 100644
index 000000000..5b32d4c10
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/dependabot.yml
@@ -0,0 +1,9 @@
+---
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: daily
+ labels:
+ - "skip-changelog"
diff --git a/ansible_collections/splunk/es/.github/release-drafter.yml b/ansible_collections/splunk/es/.github/release-drafter.yml
new file mode 100644
index 000000000..e3e5966e4
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/release-drafter.yml
@@ -0,0 +1,3 @@
+---
+# see https://github.com/ansible-community/devtools
+_extends: ansible-community/devtools
diff --git a/ansible_collections/splunk/es/.github/workflows/ack.yml b/ansible_collections/splunk/es/.github/workflows/ack.yml
new file mode 100644
index 000000000..fda595dc5
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/workflows/ack.yml
@@ -0,0 +1,15 @@
+---
+# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml
+name: ack
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ pull_request_target:
+ types: [opened, labeled, unlabeled, synchronize]
+
+jobs:
+ ack:
+ uses: ansible/devtools/.github/workflows/ack.yml@main
diff --git a/ansible_collections/splunk/es/.github/workflows/codecoverage.yml b/ansible_collections/splunk/es/.github/workflows/codecoverage.yml
new file mode 100644
index 000000000..c2a7ad60d
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/workflows/codecoverage.yml
@@ -0,0 +1,15 @@
+---
+name: code_coverage
+
+on: # yamllint disable-line rule:truthy
+ push:
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ codecoverage:
+ uses: ansible-network/github_actions/.github/workflows/coverage_network_devices.yml@main
+ with:
+ collection_pre_install: >-
+ git+https://github.com/ansible-collections/ansible.utils.git
+ git+https://github.com/ansible-collections/ansible.netcommon.git
diff --git a/ansible_collections/splunk/es/.github/workflows/lint.yml b/ansible_collections/splunk/es/.github/workflows/lint.yml
new file mode 100644
index 000000000..fbac38cbf
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/workflows/lint.yml
@@ -0,0 +1,13 @@
+---
+name: ansible-lint
+on: # yamllint disable-line rule:truthy
+ pull_request:
+ branches: ["main"]
+jobs:
+ build:
+ name: Ansible Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Run ansible-lint
+ uses: ansible/ansible-lint@main
diff --git a/ansible_collections/splunk/es/.github/workflows/push.yml b/ansible_collections/splunk/es/.github/workflows/push.yml
new file mode 100644
index 000000000..dabb4351a
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/workflows/push.yml
@@ -0,0 +1,27 @@
+---
+# push workflow is shared and expected to perform actions after a merge happens
+# on a maintenance branch (default or release). For example updating the
+# draft release-notes.
+# based on great work from
+# https://github.com/T-Systems-MMS/ansible-collection-icinga-director
+name: push
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ workflow_dispatch:
+
+env:
+ NAMESPACE: splunk
+ COLLECTION_NAME: es
+ ANSIBLE_COLLECTIONS_PATHS: ./
+
+jobs:
+ update_release_draft:
+ uses: ansible/devtools/.github/workflows/push_network.yml@main
+ with:
+ repo: ansible-collections/splunk.es
+ secrets:
+ BOT_PAT: ${{ secrets.BOT_PAT }}
diff --git a/ansible_collections/splunk/es/.github/workflows/release.yml b/ansible_collections/splunk/es/.github/workflows/release.yml
new file mode 100644
index 000000000..eb04259d1
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/workflows/release.yml
@@ -0,0 +1,14 @@
+---
+name: release
+on: # yamllint disable-line rule:truthy
+ release:
+ types: [published]
+
+jobs:
+ release:
+ uses: ansible/devtools/.github/workflows/release_collection.yml@main
+ with:
+ environment: release
+ secrets:
+ ah_token: ${{ secrets.AH_TOKEN }}
+ ansible_galaxy_api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
diff --git a/ansible_collections/splunk/es/.github/workflows/test.yml b/ansible_collections/splunk/es/.github/workflows/test.yml
deleted file mode 100644
index e2a19e00a..000000000
--- a/ansible_collections/splunk/es/.github/workflows/test.yml
+++ /dev/null
@@ -1,41 +0,0 @@
----
-name: Test collection
-
-concurrency:
- group: ${{ github.head_ref }}
- cancel-in-progress: true
-
-on: # yamllint disable-line rule:truthy
- pull_request:
- branches: [main]
- workflow_dispatch:
-
-jobs:
- 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:
- - changelog
- - sanity
- - unit-galaxy
- - unit-source
- runs-on: ubuntu-latest
- steps:
- - run: >-
- python -c "assert set([
- '${{ needs.changelog.result }}',
- '${{ needs.sanity.result }}',
- '${{ needs.unit-galaxy.result }}',
- '${{ needs.unit-source.result }}'
- ]) == {'success'}" \ No newline at end of file
diff --git a/ansible_collections/splunk/es/.github/workflows/tests.yml b/ansible_collections/splunk/es/.github/workflows/tests.yml
new file mode 100644
index 000000000..27ea93fa7
--- /dev/null
+++ b/ansible_collections/splunk/es/.github/workflows/tests.yml
@@ -0,0 +1,46 @@
+---
+name: CI
+
+concurrency:
+ group: ${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ pull_request:
+ branches: [main]
+ workflow_dispatch:
+ schedule:
+ - cron: '0 0 * * *'
+
+
+jobs:
+ changelog:
+ uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
+ if: github.event_name == 'pull_request'
+ 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() && (github.event_name != 'schedule') }}
+ needs:
+ - changelog
+ - sanity
+ - unit-galaxy
+ - unit-source
+ runs-on: ubuntu-latest
+ steps:
+ - run: >-
+ python -c "assert 'failure' not in
+ set([
+ '${{ needs.changelog.result }}',
+ '${{ needs.sanity.result }}',
+ '${{ needs.unit-galaxy.result }}',
+ '${{ needs.unit-source.result }}'
+ ])"