mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-27 06:10:32 +00:00
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
|
---
|
||
|
name: Ansible Integration Test
|
||
|
on:
|
||
|
workflow_call:
|
||
|
inputs:
|
||
|
targets:
|
||
|
required: true
|
||
|
type: string
|
||
|
ansible-core-versions:
|
||
|
required: false
|
||
|
default: '["stable-2.14"]'
|
||
|
type: string
|
||
|
target-python-versions:
|
||
|
required: false
|
||
|
default: '["default"]'
|
||
|
type: string
|
||
|
|
||
|
jobs:
|
||
|
ansible-test-integration:
|
||
|
runs-on: ubuntu-latest
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
targets: ${{ fromJson(inputs.targets) }}
|
||
|
ansible-core-versions: ${{ fromJson(inputs.ansible-core-versions) }}
|
||
|
target-python-versions: ${{ fromJson(inputs.target-python-versions) }}
|
||
|
|
||
|
name: "${{ matrix.targets.name }}-${{ matrix.ansible-core-versions }}"
|
||
|
steps:
|
||
|
- name: "Perform ${{ matrix.targets.test }} integration test with ansible-test"
|
||
|
uses: ansible-community/ansible-test-gh-action@release/v1
|
||
|
with:
|
||
|
ansible-core-version: ${{ matrix.ansible-core-versions }}
|
||
|
target-python-version: ${{ matrix.target-python-versions }}
|
||
|
controller-python-version: auto
|
||
|
docker-image: "--docker-privileged" # Workaround because ansible-test action doesn't support setting privileged flag
|
||
|
testing-type: integration
|
||
|
target: ${{ matrix.targets.test }}
|
||
|
# coverage: never # https://github.com/ansible-community/ansible-test-gh-action/pull/50
|