From e8e19fe2e35e86abc794ad07a8223969d0fd74a2 Mon Sep 17 00:00:00 2001 From: Ishan Jain <51803183+ishanjainn@users.noreply.github.com> Date: Tue, 22 Nov 2022 14:00:41 +0530 Subject: [PATCH] Update ci-test.yml --- .github/workflows/ci-test.yml | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index c47e439..d159108 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -13,21 +13,33 @@ env: jobs: sanity: - runs-on: ubuntu-latest - name: Sanity (Ⓐ$${{ matrix.ansible_version }}) - timeout-minutes: 30 + name: Sanity (Ⓐ${{ matrix.ansible }}) strategy: matrix: - python_version: ["3.9"] - ansible_version: ["stable-2.13", "stable-2.14", "devel"] + ansible: + - stable-2.11 + - stable-2.12 + - stable-2.13 + - devel + runs-on: ubuntu-latest steps: - - name: Perform testing - uses: ansible-community/ansible-test-gh-action@release/v1 + + - name: Check out code + uses: actions/checkout@v3 with: - ansible-core-version: ${{ matrix.ansible_version }} - origin-python-version: ${{ matrix.python_version }} - target-python-version: ${{ matrix.python_version }} - testing-type: sanity + path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} + + - name: Set up Python + uses: actions/setup-python@v3 + 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 --coverage + working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} integration: runs-on: ubuntu-latest