From 8db4be58a7a4b0a0f239889fd5a3fd0bf44348b0 Mon Sep 17 00:00:00 2001 From: Michelfrancis Bustillos Date: Sun, 5 Jan 2025 16:33:55 -0600 Subject: [PATCH] Update ansible-test.yml --- .github/workflows/ansible-test.yml | 62 ++++++++++++++++++------------ 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 81a4dff..41097ff 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -1,24 +1,38 @@ -- name: Perform integration testing with ansible-test - uses: ansible-community/ansible-test-gh-action@release/v1 - with: - ansible-core-version: stable-2.14 - pre-test-cmd: echo This runs before the ansible-test invocation - target-python-version: 3.11 - controller-python-version: auto - testing-type: integration - test-deps: ansible.netcommon -- name: Perform sanity testing with ansible-test - uses: ansible-community/ansible-test-gh-action@release/v1 - with: - ansible-core-version: stable-2.14 - testing-type: sanity -- name: Perform unit testing with ansible-test - uses: ansible-community/ansible-test-gh-action@release/v1 - with: - ansible-core-version: stable-2.14 - pre-test-cmd: echo This runs before the ansible-test invocation - target-python-version: 3.11 - testing-type: units - test-deps: >- - ansible.netcommon - ansible.utils +name: Ansible Test + +on: + push: + branches: [ main ] + + pull_request: + branches: [ main ] + +jobs: + ansible-test: + runs-on: ubuntu-latest + + steps: + - name: Perform integration testing with ansible-test + uses: ansible-community/ansible-test-gh-action@release/v1 + with: + ansible-core-version: stable-2.14 + pre-test-cmd: echo This runs before the ansible-test invocation + target-python-version: 3.12 + controller-python-version: auto + testing-type: integration + test-deps: ansible.netcommon + - name: Perform sanity testing with ansible-test + uses: ansible-community/ansible-test-gh-action@release/v1 + with: + ansible-core-version: stable-2.14 + testing-type: sanity + - name: Perform unit testing with ansible-test + uses: ansible-community/ansible-test-gh-action@release/v1 + with: + ansible-core-version: stable-2.14 + pre-test-cmd: echo This runs before the ansible-test invocation + target-python-version: 3.11 + testing-type: units + test-deps: >- + ansible.netcommon + ansible.utils