Skip to content

Commit

Permalink
added matrix strategy to ansible-tests for testing across multiple an…
Browse files Browse the repository at this point in the history
…sible versions
  • Loading branch information
andreygubarev committed May 10, 2024
1 parent f675de5 commit 29a2c3e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
version:
- 3.0
- 4.0
- 5.0
- 6.0
- 7.0
- 8.0
- 9.0
steps:
- uses: actions/checkout@v4

Expand All @@ -32,6 +41,6 @@ jobs:
- name: Run test
run: |
direnv allow .
direnv exec . pipenv install ansible~=5.0.0
direnv exec . pipenv install ansible~=${{ matrix.version }}
direnv exec . ansible-galaxy collection install -r requirements.yml
direnv exec . make test-platform-amd64

0 comments on commit 29a2c3e

Please sign in to comment.