UNPKG

1.22 kBYAMLView Raw
1name: 'Integration Tests'
2
3# Notes:
4# https://github.community/t5/GitHub-Actions/Github-Actions-services-not-reachable/m-p/30739/highlight/true#M538
5
6on:
7 pull_request:
8 branches:
9 - master
10 - next
11
12jobs:
13 baseline:
14 name: Baseline Tests
15 runs-on: ubuntu-latest
16
17 # services:
18 # openldap:
19 # image: docker.pkg.github.com/ldapjs/docker-test-openldap/openldap:1.0
20 # ports:
21 # - 389:389
22 # - 636:636
23
24 steps:
25 - uses: actions/checkout@v1
26 - uses: actions/setup-node@v1
27
28 # Hack way to start service since GitHub doesn't integrate with its own services
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