summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:01 +0000
commita453ac31f3428614cceb99027f8efbdb9258a40b (patch)
treef61f87408f32a8511cbd91799f9cececb53e0374 /collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github
parentInitial commit. (diff)
downloadansible-a453ac31f3428614cceb99027f8efbdb9258a40b.tar.xz
ansible-a453ac31f3428614cceb99027f8efbdb9258a40b.zip
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github')
-rw-r--r--collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/integration.yml80
-rw-r--r--collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/publish.yml30
-rw-r--r--collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/sanity.yml35
3 files changed, 145 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/integration.yml b/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/integration.yml
new file mode 100644
index 00000000..1ddc5e29
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/integration.yml
@@ -0,0 +1,80 @@
+name: Collection integration
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ schedule:
+ - cron: 30 6 * * *
+
+jobs:
+ integration-test:
+ name: Integration v${{ matrix.container-version }} Ansible-${{ matrix.ansible-branch }} group${{ matrix.group }} Py${{ matrix.python-version }}
+ defaults:
+ run:
+ working-directory: ansible_collections/ngine_io/cloudstack
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version:
+ - 3.6
+ - 2.7
+ group:
+ - 1
+ - 2
+ ansible-branch:
+ - devel
+ container-version:
+ - 1.4.0
+ - 1.2.0
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+ with:
+ path: ansible_collections/ngine_io/cloudstack
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+
+ - name: Install ansible and collection dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-branch }}.tar.gz
+ pip install -r requirements.txt
+
+ - name: Build and install collection
+ run: |
+ ansible-galaxy collection build .
+ ansible-galaxy collection install *.gz
+
+ - name: Run the tests
+ run: >-
+ ansible-test
+ integration
+ --docker
+ -v
+ --diff
+ --color
+ --retry-on-error
+ --python ${{ matrix.python-version }}
+ --continue-on-error
+ --coverage
+ shippable/cs/group${{ matrix.group }}/
+ env:
+ ANSIBLE_CLOUDSTACK_CONTAINER: quay.io/ansible/cloudstack-test-container:${{ matrix.container-version }}
+
+ - 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
diff --git a/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/publish.yml b/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/publish.yml
new file mode 100644
index 00000000..7d7df0f7
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/publish.yml
@@ -0,0 +1,30 @@
+name: Upload release to Galaxy
+
+on:
+ release:
+ types: [created]
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: ansible_collections/ngine_io/cloudstack
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ path: ansible_collections/ngine_io/cloudstack
+ - name: Set up Python
+ uses: actions/setup-python@v1
+ with:
+ python-version: '3.x'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install ansible
+ - name: Build and publish
+ env:
+ ANSIBLE_GALAXY_API_KEY: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
+ run: |
+ ansible-galaxy collection build .
+ ansible-galaxy collection publish *.tar.gz --api-key $ANSIBLE_GALAXY_API_KEY
diff --git a/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/sanity.yml b/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/sanity.yml
new file mode 100644
index 00000000..3329a194
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/ngine_io/cloudstack/.github/workflows/sanity.yml
@@ -0,0 +1,35 @@
+name: Sanity
+on:
+ schedule:
+ - cron: "* 12 * * *"
+ pull_request:
+
+jobs:
+ sanity:
+ name: Sanity (${{ matrix.ansible }})
+ defaults:
+ run:
+ working-directory: ansible_collections/ngine_io/cloudstack
+ strategy:
+ matrix:
+ ansible:
+ - stable-2.10
+ - stable-2.9
+ - devel
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out code
+ uses: actions/checkout@v2
+ with:
+ path: ansible_collections/ngine_io/cloudstack
+
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: '3.x'
+
+ - name: Install ansible-base (${{ matrix.ansible }})
+ 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