-
-
Notifications
You must be signed in to change notification settings - Fork 20
57 lines (54 loc) · 1.69 KB
/
continuous-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: "Continuous Integration"
on:
pull_request:
push:
branches:
tags:
jobs:
matrix:
name: Generate job matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- name: Gather CI configuration
id: matrix
uses: laminas/laminas-ci-matrix-action@v1
qa:
name: QA Checks
needs: [matrix]
runs-on: ${{ matrix.operatingSystem }}
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.ci
- name: Prepare LDAP test server
shell: bash
run: |
echo "${{ toJSON(job) }}"
docker run --rm -d \
--network ${{ job.container.network }} \
-v .ci/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom:z \
-v .ci/certs:/container/service/slapd/assets/certs:z \
--name service-ldap \
-e LDAP_DOMAIN="example.com" \
-e LDAP_ADMIN_PASSWORD="insecure" \
-e LDAP_TLS_CA_CRT_FILENAME="root-ca.crt" \
-e LDAP_TLS_CRT_FILENAME="server.crt" \
-e LDAP_TLS_KEY_FILENAME="server.key" \
osixia/openldap:1.5.0 \
"--copy-service --loglevel debug"
# wait for slapd to start. TODO: add real health check
sleep 1
- name: ${{ matrix.name }}
uses: laminas/laminas-continuous-integration-action@v1
with:
job: ${{ matrix.job }}
env:
TESTS_LAMINAS_LDAP_ONLINE_ENABLED: "true"
TESTS_LAMINAS_LDAP_HOST: "service-ldap"
TESTS_LAMINAS_LDAP_PORT: "389"