Skip to content

Commit

Permalink
fixup! Enable Github workflow for basic deployment role testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Guterres Jeffman committed Dec 30, 2024
1 parent 433fbe6 commit b8f7e3b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/test_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b8f7e3b

Please sign in to comment.