-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add integration run of changed on PR
- Loading branch information
Showing
2 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Collection integration of changed | ||
|
||
on: | ||
pull_request: | ||
push: | ||
paths: | ||
- "plugins/**" | ||
- "tests/integration/**" | ||
|
||
jobs: | ||
integration-test: | ||
name: Integration of changes v${{ matrix.container-version }} Ansible-${{ matrix.ansible-branch }} 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.11" | ||
ansible-branch: | ||
- stable-2.17 | ||
container-version: | ||
- 1.6.1 | ||
- 1.4.0 | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ansible_collections/ngine_io/cloudstack | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
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 }} | ||
--changed | ||
env: | ||
ANSIBLE_CLOUDSTACK_CONTAINER: quay.io/ansible/cloudstack-test-container:${{ matrix.container-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters