summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/community/grafana/.github
diff options
context:
space:
mode:
Diffstat (limited to 'collections-debian-merged/ansible_collections/community/grafana/.github')
-rw-r--r--collections-debian-merged/ansible_collections/community/grafana/.github/CODEOWNERS13
-rw-r--r--collections-debian-merged/ansible_collections/community/grafana/.github/settings.yml89
-rw-r--r--collections-debian-merged/ansible_collections/community/grafana/.github/workflows/ansible-test.yml89
-rw-r--r--collections-debian-merged/ansible_collections/community/grafana/.github/workflows/rebase.yml24
4 files changed, 215 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/community/grafana/.github/CODEOWNERS b/collections-debian-merged/ansible_collections/community/grafana/.github/CODEOWNERS
new file mode 100644
index 00000000..3035cfbb
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/community/grafana/.github/CODEOWNERS
@@ -0,0 +1,13 @@
+.github
+
+# Repo maintainers, and goverance team (like Anisble's @ansible-commit-external)
+* @rrey @seuf @gundalow-collections/community-goverance-team
+
+# or possibly, we may want to define teams at the org level.
+# * @gundalow-collections/grafana-maintainers
+
+# Example of maintainer of just a single plugin
+#grafana/plugins/modules/grafana_plugin.py @someone-else
+
+
+.github/ @gundalow
diff --git a/collections-debian-merged/ansible_collections/community/grafana/.github/settings.yml b/collections-debian-merged/ansible_collections/community/grafana/.github/settings.yml
new file mode 100644
index 00000000..9fde967c
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/community/grafana/.github/settings.yml
@@ -0,0 +1,89 @@
+###
+# https://probot.github.io/apps/settings/
+#
+
+# DO NOT MODIFY
+# this is a copy of https://github.com/gundalow-collection/.github/blob/master/.github/settings.yml
+# Work around till https://github.com/probot/settings/pull/179 is merged
+
+
+
+repository:
+ # See https://developer.github.com/v3/repos/#edit for all available settings.
+ has_issues: true
+ has_wiki: false
+ has_pages: false
+ default_branch: devel
+ allow_squash_merge: true
+ allow_merge_commit: false
+ allow_rebase_merge: true
+
+# Labels: define labels for Issues and Pull Requests
+labels:
+ - name: bug
+ color: fbca04
+ description: This issue/PR relates to a bug.
+ - name: feature
+ description: This issue/PR relates to a feature request.
+ color: 006b75
+ - name: migrated_from_ansible_ansible
+ color: 5319e7
+ description: This issue/PR was moved from gh/ansible/ansible
+
+branches:
+ - name: devel
+ # https://developer.github.com/v3/repos/branches/#update-branch-protection
+ # Branch Protection settings. Set to null to disable
+ protection:
+ # Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
+ required_pull_request_reviews:
+ # The number of approvals required. (1-6)
+ required_approving_review_count: 1
+ # Dismiss approved reviews automatically when a new commit is pushed.
+ dismiss_stale_reviews: true
+ # Blocks merge until code owners have reviewed.
+ require_code_owner_reviews: true
+ # Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
+ dismissal_restrictions:
+ users: []
+ teams: []
+ # Required. Require status checks to pass before merging. Set to null to disable
+ required_status_checks:
+ # Required. Require branches to be up to date before merging.
+ strict: true
+ # Required. The list of status checks to require in order to merge into this branch
+ contexts: []
+ # Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
+ enforce_admins: true
+ # Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
+ #restrictions:
+ # users: []
+ # teams: []
+ - name: master
+ # https://developer.github.com/v3/repos/branches/#update-branch-protection
+ # Branch Protection settings. Set to null to disable
+ protection:
+ # Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
+ required_pull_request_reviews:
+ # The number of approvals required. (1-6)
+ required_approving_review_count: 1
+ # Dismiss approved reviews automatically when a new commit is pushed.
+ dismiss_stale_reviews: true
+ # Blocks merge until code owners have reviewed.
+ require_code_owner_reviews: true
+ # Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
+ dismissal_restrictions:
+ users: []
+ teams: []
+ # Required. Require status checks to pass before merging. Set to null to disable
+ required_status_checks:
+ # Required. Require branches to be up to date before merging.
+ strict: true
+ # Required. The list of status checks to require in order to merge into this branch
+ contexts: []
+ # Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
+ enforce_admins: true
+ # Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
+ #restrictions:
+ # users: []
+ # teams: []
diff --git a/collections-debian-merged/ansible_collections/community/grafana/.github/workflows/ansible-test.yml b/collections-debian-merged/ansible_collections/community/grafana/.github/workflows/ansible-test.yml
new file mode 100644
index 00000000..7925eebb
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/community/grafana/.github/workflows/ansible-test.yml
@@ -0,0 +1,89 @@
+name: CI
+on:
+- pull_request
+
+jobs:
+ sanity:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python_version: ["3.6"]
+ ansible_version: ["stable-2.9", "stable-2.10", "devel"]
+ steps:
+
+ - name: Check out code
+ uses: actions/checkout@v1
+ with:
+ path: ansible_collections/community/grafana
+
+ - name: Set up Python ${{ matrix.python_version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python_version }}
+
+ - name: Install ansible
+ run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible_version }}.tar.gz --disable-pip-version-check
+
+ - name: Run sanity tests
+ run: ansible-test sanity --docker -v --color
+
+ units:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python_version: ["3.6"]
+ ansible_version: ["stable-2.9", "stable-2.10", "devel"]
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v1
+ with:
+ path: ansible_collections/community/grafana
+
+ - name: Set up Python ${{ matrix.python_version }}
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python_version }}
+
+ - name: Install ansible
+ run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible_version }}.tar.gz --disable-pip-version-check
+
+ - name: Run unit tests
+ run: ansible-test units --docker -v --color --python ${{ matrix.python_version }} --coverage
+
+ - name: Generate coverage report.
+ run: ansible-test coverage xml -v --requirements --group-by command --group-by version
+
+ - uses: codecov/codecov-action@v1
+ with:
+ fail_ci_if_error: false
+
+ integration:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ grafana_version: ["6.7.4", "7.0.6", "7.1.3"]
+ ansible_version: ["stable-2.9", "stable-2.10", "devel"]
+ python_version: ["3.6"]
+ container:
+ image: python:${{ matrix.python_version }}-alpine
+ services:
+ grafana:
+ image: grafana/grafana:${{ matrix.grafana_version }}
+ steps:
+
+ - name: Install requirements on alpine
+ run: apk add bash git gcc python3-dev libc-dev libffi-dev openssl-dev
+
+ - name: Check out code
+ uses: actions/checkout@v1
+ with:
+ path: ansible_collections/community/grafana
+
+ - name: Install deps
+ run: pip install coverage
+
+ - name: Install ansible
+ run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible_version }}.tar.gz --disable-pip-version-check
+
+ - name: Run integration tests on Python ${{ matrix.python_version }}
+ run: ansible-test integration -v --color --retry-on-error --python ${{ matrix.python_version }} --continue-on-error --diff
diff --git a/collections-debian-merged/ansible_collections/community/grafana/.github/workflows/rebase.yml b/collections-debian-merged/ansible_collections/community/grafana/.github/workflows/rebase.yml
new file mode 100644
index 00000000..017a2faa
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/community/grafana/.github/workflows/rebase.yml
@@ -0,0 +1,24 @@
+# https://github.com/marketplace/actions/automatic-rebase
+# GitHub Actions don't automatically rebase before running, so add support for people to type `/rebase`
+on:
+ issue_comment:
+ types: [created]
+name: Automatic Rebase
+jobs:
+ rebase:
+ name: Rebase
+ if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@1.2
+ - name: Automatic Rebase
+ uses: cirrus-actions/rebase@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
+ always_job:
+ name: Aways run job
+ runs-on: ubuntu-latest
+ steps:
+ - name: Always run
+ run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."