Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Enable github actions CI #2

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
run-playbook:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
- name: setup Python
Expand All @@ -18,5 +19,9 @@ jobs:
- name: Create a roles_path
run: >-
printf '[defaults]\nroles_path=../' >ansible.cfg
- name: Install role requirements
run: ansible-galaxy install -r meta/requirements.yml
- name: Test the playbook
run: ansible-playbook tests/test.yml -i tests/inventory --syntax-check
- name: Run the playbook
run: ansible-playbook tests/test.yml -i tests/inventory -e ansible_python_interpreter=python3
3 changes: 1 addition & 2 deletions meta/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
- name: galaxyproject.galaxy
src: https://github.com/galaxyproject/ansible-galaxy
version: 769a21e8dcd619e53caacfc7a45ef64a69e104ad
version: 0.9.13
2 changes: 1 addition & 1 deletion tests/inventory
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
localhost
localhost ansible_connection=local

3 changes: 2 additions & 1 deletion tests/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- hosts: localhost
remote_user: root
become: yes
become_method: sudo
roles:
- ansible-galaxy-cluster