ansible-collection-prometheus/.github/workflows/ansible-test-sanity.yml
gardar d2ff013bb3
feat(ci): add workflow for running ansible-test and molecule
Signed-off-by: gardar <gardar@users.noreply.github.com>
2023-01-11 19:55:24 +00:00

25 lines
657 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