-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.21 KB
/
test-collection.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
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) }}"