add new CI workflow to test against the automation hub collection #2
Workflow file for this run
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: Automation Hub Collection CI | |
on: | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- "CHANGES/**" | |
- "docs/**" | |
- "mkdocs.yml" | |
push: | |
branches: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
automation_hub_collection: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout galaxy_ng | |
uses: actions/checkout@v3 | |
- name: Checkout the automation hub collection | |
uses: actions/checkout@v3 | |
with: | |
repository: ansible/automation_hub_collection | |
path: automation_hub_collection | |
- name: Build and install the collection | |
working-directory: automation_hub_collection | |
run: | | |
ansible all -i localhost, -c local -m template -a "src=galaxy.yml.j2 dest=galaxy.yml" -e collection_namespace=ansible -e collection_name=automation_hub -e collection_version=1.0.0 -e collection_repo=https://github.com/ansible/automation_hub_collection | |
ansible-galaxy collection build -vvv | |
ansible-galaxy collection install ansible-automation_hub-1.0.0.tar.gz -vvv | |
- name: Spin up standalone galaxy_ng installation | |
run: | | |
cp .compose.env.example .compose.env | |
make docker/all | |
- name: Test the user playbook | |
run: ansible-playbook .ci/ansible/ah_collection_plays/user.yml | |