Skip to content

Commit

Permalink
Enable LDAP on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Aug 14, 2023
1 parent b35eccd commit b512d86
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
env:
NO_DOCKER: true
COVERAGE: --coverage-text
LDAP_HOST: localhost

jobs:
postgresql:
Expand Down Expand Up @@ -47,6 +48,19 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}

- name: Start OpenLDAP server
run: |
# The server cannot be run as a normal service because it
# wouldn't have access to the docker/ldap-ldifs/ folder.
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:
Expand Down Expand Up @@ -83,6 +97,19 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}

- name: Start OpenLDAP server
run: |
# The server cannot be run as a normal service because it
# wouldn't have access to the docker/ldap-ldifs/ folder.
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:
Expand Down

0 comments on commit b512d86

Please sign in to comment.