mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-23 04:13:05 +00:00
f48cfb10b0
Signed-off-by: gardar <gardar@users.noreply.github.com>
27 lines
911 B
YAML
27 lines
911 B
YAML
---
|
|
name: Ansible Sanity Test
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ansible-core-versions:
|
|
required: false
|
|
default: '["stable-2.14"]'
|
|
type: string
|
|
|
|
jobs:
|
|
ansible-test-sanity:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
ansible-core-versions: ${{ fromJson(inputs.ansible-core-versions) }}
|
|
|
|
name: "sanity-${{ matrix.ansible-core-versions }}"
|
|
steps:
|
|
- name: "Perform sanity test with ansible-test"
|
|
uses: ansible-community/ansible-test-gh-action@release/v1
|
|
with:
|
|
ansible-core-version: ${{ matrix.ansible-core-versions }}
|
|
testing-type: sanity
|
|
ansible-core-github-repository-slug: ${{ contains(fromJson('["stable-2.9", "stable-2.10", "stable-2.11"]'), matrix.ansible-core-versions) &&
|
|
'ansible-community/eol-ansible' || 'ansible/ansible' }}
|