forked from freeipa/ansible-freeipa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Enable Github workflow for basic deployment role testing
- Loading branch information
Rafael Guterres Jeffman
committed
Dec 30, 2024
1 parent
433fbe6
commit e7aaf7d
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ jobs: | |
name: Verify modified roles | ||
runs-on: ubuntu-latest | ||
outputs: | ||
ipaserver: ${{ steps.mod_files.output.ipaserver }} | ||
ipareplica: ${{ steps.mod_files.output.ipareplica }} | ||
ipaclient: ${{ steps.mod_files.output.ipaclient }} | ||
ipaserver: ${{ steps.mod_files.outputs.ipaserver }} | ||
ipareplica: ${{ steps.mod_files.outputs.ipareplica }} | ||
ipaclient: ${{ steps.mod_files.outputs.ipaclient }} | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -27,12 +27,20 @@ jobs: | |
| grep "^roles" \ | ||
| cut -d/ -f2 \ | ||
| sort | uniq \ | ||
| sed "s/\(.*\)/\1=true/" >> $GITHUB_OUTPUT | ||
| sed "s/\(.*\)/\1=true/" | ||
echo "ipaserver='false'" >> $GITHUB_OUTPUT | ||
echo "ipareplica='false'" >> $GITHUB_OUTPUT | ||
echo "ipaclient='false'" >> $GITHUB_OUTPUT | ||
git diff -M --name-only upstream/master \ | ||
| grep "^roles" \ | ||
| cut -d/ -f2 \ | ||
| sort | uniq \ | ||
| sed "s/\(.*\)/\1='true'/" >> $GITHUB_OUTPUT | ||
test_ipaserver: | ||
name: Test ipaserver role | ||
needs: [check_roles] | ||
if: ${{ needs.check_roles.outputs.ipaserver || "false" }} == "true" | ||
if: ${{ needs.check_roles.outputs.ipaserver == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Test ipaserver | ||
|
@@ -42,7 +50,7 @@ jobs: | |
test_ipareplica: | ||
name: Test ipareplica role | ||
needs: [check_roles] | ||
if: ${{ needs.check_roles.outputs.ipareplica || "false" }} == "true" | ||
if: ${{ needs.check_roles.outputs.ipareplica == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Test ipareplica | ||
|