Add workflow for checking Octavia cert expiry #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test stackhpc.kayobe_workflows collection | |
'on': | |
pull_request: | |
jobs: | |
test: | |
name: Test github role | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
name: | |
- none_default | |
- single_default | |
- input_default | |
- none_custom_registry | |
- single_custom_registry | |
- input_custom_registry | |
- none_custom_kayobe_argument | |
- single_custom_kayobe_argument | |
- input_custom_kayobe_argument | |
- reference | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v3 | |
- name: Set up Python 3. | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Ansible | |
run: pip3 install ansible | |
- name: Test the playbook ${{ matrix.name }} | |
run: "ansible-playbook -i tests/inventory/hosts.yml tests/test.yml --limit ${{ matrix.name }}" | |
env: | |
ANSIBLE_FORCE_COLOR: '1' | |
- name: Upload workflows produced ${{ matrix.name }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "${{ format('github_kayobe_workflows_{0}', matrix.name) }}" | |
path: "${{ format('tests/.github/{0}', matrix.name) }}" |