Skip to content

Commit

Permalink
Use matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Apr 13, 2022
1 parent 9ef37cd commit 84e47d9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ env:

jobs:
build:
name: Build and test EE
name: Build and test EE (Ⓐ${{ matrix.runner_tag }})
strategy:
matrix:
runner_tag:
- devel
- stable-2.12-latest
- stable-2.11-latest
- stable-2.9-latest
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down Expand Up @@ -65,7 +72,7 @@ jobs:
---
version: 1
build_arg_defaults:
EE_BASE_IMAGE: 'quay.io/ansible/ansible-runner:latest'
EE_BASE_IMAGE: 'quay.io/ansible/ansible-runner:${{ matrix.runner_tag }}'
dependencies:
galaxy: requirements.yml
EOF
Expand All @@ -84,13 +91,13 @@ jobs:
cat requirements.yml
echo "::endgroup::"
- name: Build ${{ matrix.name }} image
- name: Build image based on ${{ matrix.runner_tag }}
run: |
mkdir -p context/_build/
cp "${{ env.NAMESPACE }}-${{ env.COLLECTION_NAME }}"-*.tar.gz context/_build/
ansible-builder build -v 3 -t test-ee:latest --container-runtime=podman
- name: Run basic tests with ${{ matrix.name }} image
- name: Run basic tests
run: >
ansible-navigator run
--mode stdout
Expand Down

0 comments on commit 84e47d9

Please sign in to comment.