feat: add gitlab
role to enable GitLab CI/CD
#101
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/[email protected] | |
- name: Set up Python 3. | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
name: "${{ format('github_kayobe_workflows_{0}', matrix.name) }}" | |
path: "${{ format('tests/.github/{0}', matrix.name) }}" |