-
Notifications
You must be signed in to change notification settings - Fork 28
54 lines (44 loc) · 1.3 KB
/
integration-test.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
name: 'Integration Tests'
env:
INGITHUB: true
on:
push:
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'SECURITY.md'
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 17.x, 18.x, 20.x, 22.x]
name: 'Integration Node v${{ matrix.node-version }}'
steps:
- uses: actions/checkout@v3
- name: Install LDAP tools
run: sudo apt-get install -y ldap-utils
- name: Start containers
run: docker compose -f "docker-compose.yml" up -d
- name: Wait for LDAP server to become available
uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 10
polling_interval_seconds: 3
command: |
ldapsearch -LLL -o 'ldif-wrap=no' \
-H ldap://localhost:1389 \
-D 'cn=read-only-admin,dc=example,dc=com' \
-w password \
-b 'cn=einstein,ou=users,dc=example,dc=com' DN
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
- name: Stop containers
if: always()
run: docker compose -f "docker-compose.yml" down