Skip to content

Commit

Permalink
FIX: Build galaxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Guterres Jeffman committed Dec 31, 2024
1 parent 7ddaab0 commit f66b7e8
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/test_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Test collection roles
on:
- push
- pull_request
env:
test_path: "${HOME}/.ansible/collections/ansible_collections/freeipa/ansible_freeipa"

jobs:
check_roles:
name: Verify modified roles
Expand All @@ -16,6 +19,12 @@ jobs:
with:
fetch-depth: 1

- name: Build and install collection
run: |
utils/build-galaxy-release.sh -i \
-o "$(curl -L https://api.github.com/repos/freeipa/ansible-freeipa/releases 2>/dev/null \
| jq '.[0].tag_name' | tr -d '"v')-dev$(date +"%Y%m%d%H%M")"
- name: Check modified roles
id: mod_files
shell: bash
Expand Down Expand Up @@ -50,18 +59,15 @@ jobs:
with:
fetch-depth: 1

- name: Install ansible-freeipa collection
run: utils/build-galaxy-release.sh -i

- name: Test ipaserver
uses: rjeffman/FreeIPA-Cluster-Test@devel
with:
cluster_configuration: tests/deployment/${{ matrix.cluster_config }}
test_playbooks: >-
tests/user/test_user.yml
tests/group/test_group.yml
tests/host/test_host.yml
tests/hbacrule/test_hbacrule.yml
${{ test_path }}/tests/user/test_user.yml
${{ test_path }}/tests/group/test_group.yml
${{ test_path }}/tests/host/test_host.yml
${{ test_path }}/tests/hbacrule/test_hbacrule.yml
# test_ipareplica:
# name: Test ipareplica role
Expand Down

0 comments on commit f66b7e8

Please sign in to comment.