From d3fd487ee8821b4702636fb47274a76097d2818f Mon Sep 17 00:00:00 2001 From: Sachin Apagundi <62133262+sachin-apa@users.noreply.github.com> Date: Thu, 30 Jan 2025 10:09:11 +0530 Subject: [PATCH 1/4] Update ansible-test.yml --- .github/workflows/ansible-test.yml | 51 ++---------------------------- 1 file changed, 2 insertions(+), 49 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 9e7b6f4..caef16d 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -109,53 +109,6 @@ jobs: pull-request-change-detection: true coverage: never - lint: - name: Ansible lint - runs-on: ubuntu-latest + ansible-lint: needs: [build] - strategy: - fail-fast: false - matrix: - python-version: ["3.9", "3.10", "3.11"] - ansible-version: [stable-2.15, stable-2.16, stable-2.17, devel] - exclude: - # Ansible-core 2.16 is supported only from Python 3.10 onwards - - python-version: "3.9" - ansible-version: stable-2.16 - - python-version: "3.9" - ansible-version: stable-2.17 - - python-version: "3.9" - ansible-version: devel - - python-version: "3.10" - ansible-version: devel - - steps: - # Important: This sets up your GITHUB_WORKSPACE environment variable - - name: Checkout the source code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # needed for progressive mode to work - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install ansible (${{ matrix.ansible-version }}) version - run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check - - - name: Install ansible lint - run: pip install ansible-lint --disable-pip-version-check - - - name: Download migrated collection artifacts - uses: actions/download-artifact@v3 - with: - name: collection - path: .cache/collection-tarballs - - - name: Install collection build - run: ansible-galaxy collection install .cache/collection-tarballs/*.tar.gz - - - name: Run Ansible lint - run: ansible-lint --show-relpath - working-directory: /home/runner/work/ansible-powerflex/ansible-powerflex + uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main From bad944d36aa9af8f425c0abfff6a684d816088b0 Mon Sep 17 00:00:00 2001 From: Sachin Apagundi <62133262+sachin-apa@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:03:47 +0530 Subject: [PATCH 2/4] Update ansible-test.yml --- .github/workflows/ansible-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index caef16d..b918b3e 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -14,15 +14,15 @@ jobs: strategy: fail-fast: false matrix: - ansible-version: [stable-2.15, stable-2.16, stable-2.17, devel] + ansible-version: [stable-2.18] steps: - name: Check out code uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.11 + python-version: 3.12 - name: Install ansible (${{ matrix.ansible-version }}) run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible-version }}.tar.gz --disable-pip-version-check @@ -31,7 +31,7 @@ jobs: run: ansible-galaxy collection build --output-path "${GITHUB_WORKSPACE}/.cache/collection-tarballs" - name: Store migrated collection artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: collection path: .cache/collection-tarballs From e6eb112748b733689e48df99a398dc0637042bd3 Mon Sep 17 00:00:00 2001 From: Sachin Apagundi <62133262+sachin-apa@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:05:18 +0530 Subject: [PATCH 3/4] Update ansible-test.yml --- .github/workflows/ansible-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index b918b3e..0a27c75 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - ansible-version: [stable-2.18] + ansible-version: [stable-2.18, devel] steps: - name: Check out code uses: actions/checkout@v4 From 44cf188920b5883ac63ed39983b7c8f57165d1d6 Mon Sep 17 00:00:00 2001 From: Sachin Apagundi <62133262+sachin-apa@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:08:22 +0530 Subject: [PATCH 4/4] Update ansible-test.yml --- .github/workflows/ansible-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 0a27c75..b918b3e 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - ansible-version: [stable-2.18, devel] + ansible-version: [stable-2.18] steps: - name: Check out code uses: actions/checkout@v4