diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 903c5b7..e836521 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -36,19 +36,6 @@ jobs: ports: - 3306:3306 options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3 - ldap: - image: bitnami/openldap - ports: - - 3389:3389 - env: - LDAP_ADMIN_USERNAME: admin - LDAP_ADMIN_PASSWORD: password - LDAP_ROOT: dc=example,dc=com - LDAP_PORT_NUMBER: 3389 - LDAP_CUSTOM_SCHEMA_FILE: /schema/eduperson.ldif - BITNAMI_DEBUG: true - volumes: - - ${{ github.workspace }}/tests/fixtures/eduperson.ldif:/schema/eduperson.ldif strategy: fail-fast: false @@ -63,6 +50,12 @@ jobs: with: path: plugin + - name: Start OpenLDAP with eduPerson + uses: addnab/docker-run-action@v3 + with: + image: bitnami/openldap + options: --env LDAP_ADMIN_USERNAME=admin --env LDAP_ADMIN_PASSWORD=password --env LDAP_ROOT="dc=example,dc=com" --env LDAP_PORT_NUMBER=3389 --env LDAP_CUSTOM_SCHEMA_FILE=/schema/eduperson.ldif -v "${{ github.workspace }}/plugin/tests/fixtures/eduperson.ldif:/schema/eduperson.ldif" --env BITNAMI_DEBUG=true + - name: Setup PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 with: