diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:04:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:04:41 +0000 |
commit | 975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch) | |
tree | 89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/ngine_io/cloudstack/.github | |
parent | Initial commit. (diff) | |
download | ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip |
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/ngine_io/cloudstack/.github')
4 files changed, 158 insertions, 0 deletions
diff --git a/ansible_collections/ngine_io/cloudstack/.github/dependabot.yml b/ansible_collections/ngine_io/cloudstack/.github/dependabot.yml new file mode 100644 index 000000000..607e7e1a2 --- /dev/null +++ b/ansible_collections/ngine_io/cloudstack/.github/dependabot.yml @@ -0,0 +1,8 @@ +# Set update schedule for GitHub Actions +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/ansible_collections/ngine_io/cloudstack/.github/workflows/integration.yml b/ansible_collections/ngine_io/cloudstack/.github/workflows/integration.yml new file mode 100644 index 000000000..0f8396818 --- /dev/null +++ b/ansible_collections/ngine_io/cloudstack/.github/workflows/integration.yml @@ -0,0 +1,78 @@ +name: Collection integration + +on: + push: + tags: "v*" + pull_request: + schedule: + - cron: 30 6 * * 2 + +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-20.04 + strategy: + fail-fast: false + matrix: + python-version: + - "3.10" + group: + - 1 + - 2 + ansible-branch: + - stable-2.14 + container-version: + - 1.4.0 + - 1.2.0 + steps: + - name: Check out code + uses: actions/checkout@v3 + with: + path: ansible_collections/ngine_io/cloudstack + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + 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@v3 + with: + fail_ci_if_error: false diff --git a/ansible_collections/ngine_io/cloudstack/.github/workflows/publish.yml b/ansible_collections/ngine_io/cloudstack/.github/workflows/publish.yml new file mode 100644 index 000000000..dbfe30e2b --- /dev/null +++ b/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@v3 + with: + path: ansible_collections/ngine_io/cloudstack + - name: Set up Python + uses: actions/setup-python@v4 + 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/ansible_collections/ngine_io/cloudstack/.github/workflows/sanity.yml b/ansible_collections/ngine_io/cloudstack/.github/workflows/sanity.yml new file mode 100644 index 000000000..fd22a6d86 --- /dev/null +++ b/ansible_collections/ngine_io/cloudstack/.github/workflows/sanity.yml @@ -0,0 +1,42 @@ +name: Sanity +on: + push: + branches: + - master + schedule: + - cron: "5 12 * * 2" + pull_request: + workflow_call: + workflow_dispatch: + +jobs: + sanity: + name: Sanity (${{ matrix.ansible }}) + defaults: + run: + working-directory: ansible_collections/ngine_io/cloudstack + strategy: + fail-fast: false + matrix: + ansible: + - stable-2.12 + - stable-2.13 + - stable-2.14 + - devel + runs-on: ubuntu-20.04 + steps: + - name: Check out code + uses: actions/checkout@v3 + with: + path: ansible_collections/ngine_io/cloudstack + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - 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 |