Skip to content

TEMP: Force ipaserver tests to run. #1

TEMP: Force ipaserver tests to run.

TEMP: Force ipaserver tests to run. #1

---
name: Test collection roles
on:
- push
- pull_request
jobs:
check_roles:
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 }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- name: Check modified roles
id: mod_files
shell: bash
run: |
set -eu
git remote add upstream https://github.com/freeipa/ansible-freeipa
git fetch --depth 1 upstream master
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"

Check failure on line 35 in .github/workflows/test_deployment.yml

View workflow run for this annotation

GitHub Actions / Test collection roles

Invalid workflow file

The workflow is not valid. .github/workflows/test_deployment.yml (Line: 35, Col: 9): Unexpected symbol: '"false"'. Located at position 40 within expression: needs.check_roles.outputs.ipaserver || "false" .github/workflows/test_deployment.yml (Line: 45, Col: 9): Unexpected symbol: '"false"'. Located at position 41 within expression: needs.check_roles.outputs.ipareplica || "false"
runs-on: ubuntu-latest
steps:
- name: Test ipaserver
run: |
echo "testing ipaserver"
test_ipareplica:
name: Test ipareplica role
needs: [check_roles]
if: ${{ needs.check_roles.outputs.ipareplica || "false" }} == "true"
runs-on: ubuntu-latest
steps:
- name: Test ipareplica
run: |
echo "testing ipareplica"