diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-18 05:52:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-18 05:52:22 +0000 |
commit | 38b7c80217c4e72b1d8988eb1e60bb6e77334114 (patch) | |
tree | 356e9fd3762877d07cde52d21e77070aeff7e789 /ansible_collections/dellemc/unity/.github | |
parent | Adding upstream version 7.7.0+dfsg. (diff) | |
download | ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.tar.xz ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.zip |
Adding upstream version 9.4.0+dfsg.upstream/9.4.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/dellemc/unity/.github')
-rw-r--r-- | ansible_collections/dellemc/unity/.github/workflows/ansible-test.yml | 49 |
1 files changed, 44 insertions, 5 deletions
diff --git a/ansible_collections/dellemc/unity/.github/workflows/ansible-test.yml b/ansible_collections/dellemc/unity/.github/workflows/ansible-test.yml index d9fb5cf04..58d3ea030 100644 --- a/ansible_collections/dellemc/unity/.github/workflows/ansible-test.yml +++ b/ansible_collections/dellemc/unity/.github/workflows/ansible-test.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - ansible-version: [stable-2.12] + ansible-version: [stable-2.13] steps: - name: Check out code uses: actions/checkout@v2 @@ -50,12 +50,10 @@ jobs: fail-fast: false matrix: python-version: ["3.9", "3.10", "3.11"] - ansible-version: [stable-2.12, stable-2.13, stable-2.14] + ansible-version: [stable-2.13, stable-2.14, stable-2.15] exclude: # Python 3.11 is supported only from ansible-core 2.14 onwards - python-version: "3.11" - ansible-version: stable-2.12 - - python-version: "3.11" ansible-version: stable-2.13 steps: @@ -93,7 +91,7 @@ jobs: strategy: fail-fast: false matrix: - ansible-version: [stable-2.12, stable-2.13, stable-2.14] + ansible-version: [stable-2.13, stable-2.14, stable-2.15] steps: - name: Set up Python 3.9 @@ -121,3 +119,44 @@ jobs: - name: Run sanity tests run: ansible-test sanity --docker -v --color working-directory: /home/runner/.ansible/collections/ansible_collections/dellemc/unity + + lint: + name: Ansible lint + runs-on: ubuntu-latest + needs: [build] + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11"] + ansible-version: [stable-2.13, stable-2.14, stable-2.15] + + steps: + # Important: This sets up your GITHUB_WORKSPACE environment variable + - name: Checkout the source code + uses: actions/checkout@v3 + with: + fetch-depth: 0 # needed for progressive mode to work + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + 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@v1 + 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-unity/ansible-unity |