1 | name: 'Integration Tests'
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | on:
|
7 | pull_request:
|
8 | branches:
|
9 | - master
|
10 | - next
|
11 |
|
12 | jobs:
|
13 | baseline:
|
14 | name: Baseline Tests
|
15 | runs-on: ubuntu-latest
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | steps:
|
25 | - uses: actions/checkout@v1
|
26 | - uses: actions/setup-node@v1
|
27 |
|
28 |
|
29 | - name: Docker login
|
30 | run: docker login docker.pkg.github.com -u ${GITHUB_ACTOR} -p ${GITHUB_TOKEN}
|
31 | env:
|
32 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
33 | - name: Pull Docker image
|
34 | run: docker pull "docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:latest"
|
35 | - name: Start OpenLDAP service
|
36 | run: docker run -it -d --name openldap -p 389:389 -p 636:636 docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:latest
|
37 |
|
38 | - name: Install Packages
|
39 | run: npm install
|
40 | - name: Run Tests
|
41 | run: npm run test:integration
|