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 4, 2023
1 parent 03b4ded commit 8e47428
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 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,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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8e47428

Please sign in to comment.