Skip to content

Commit

Permalink
Install using ansible-galaxy via git instead of cloning directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 12, 2022
1 parent cfb50b7 commit 7e10b57
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ jobs:
with:
ansible-core-version: ${{ matrix.ansible }}
testing-type: units
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)
pre-test-cmd: >-
git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git ../../community/internal_test_tools
test-deps: >-
git+https://github.com/ansible-collections/community.internal_test_tools.git,main
integration:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -120,8 +119,7 @@ jobs:
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible }}
# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429)
pre-test-cmd: >-
git clone --depth=1 --single-branch https://github.com/ansible-collections/community.general.git ../../community/general
test-deps: >-
git+https://github.com/ansible-collections/community.general.git,${{ matrix.ansible == 'stable-2.9' && 'stable-4' || 'main' }}
target-python-version: ${{ matrix.python }}
testing-type: integration

0 comments on commit 7e10b57

Please sign in to comment.