diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b3621253..cdb70933 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,6 +13,7 @@ on: env: NO_DOCKER: true COVERAGE: --coverage-text + LDAP_HOST: localhost jobs: postgresql: @@ -47,6 +48,17 @@ jobs: with: php-version: ${{ matrix.php-versions }} + - name: Start OpenLDAP server + run: | + docker run -d \ + -p "1389:1389" \ + -v ${{ github.workspace }}/docker/ldap-ldifs:/ldifs \ + -e LDAP_ROOT="dc=example,dc=com" \ + -e LDAP_ADMIN_USERNAME=admin \ + -e LDAP_ADMIN_PASSWORD=secret \ + -e BITNAMI_DEBUG=true \ + bitnami/openldap:2 + - name: Run the test suite run: make test env: @@ -83,6 +95,17 @@ jobs: with: php-version: ${{ matrix.php-versions }} + - name: Start OpenLDAP server + run: | + docker run -d \ + -p "1389:1389" \ + -v ${{ github.workspace }}/docker/ldap-ldifs:/ldifs \ + -e LDAP_ROOT="dc=example,dc=com" \ + -e LDAP_ADMIN_USERNAME=admin \ + -e LDAP_ADMIN_PASSWORD=secret \ + -e BITNAMI_DEBUG=true \ + bitnami/openldap:2 + - name: Run the test suite run: make test env: