integration.yml 886 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: 'Integration Tests'
  2. # Notes:
  3. # https://github.community/t5/GitHub-Actions/Github-Actions-services-not-reachable/m-p/30739/highlight/true#M538
  4. on:
  5. push:
  6. branches:
  7. - master
  8. - next
  9. pull_request:
  10. branches:
  11. - master
  12. - next
  13. jobs:
  14. baseline:
  15. name: Baseline Tests
  16. runs-on: ubuntu-latest
  17. services:
  18. openldap:
  19. image: ghcr.io/ldapjs/docker-test-openldap/openldap:2023-10-30
  20. ports:
  21. - 389:389
  22. - 636:636
  23. options: >
  24. --health-cmd "ldapsearch -Y EXTERNAL -Q -H ldapi:// -b ou=people,dc=planetexpress,dc=com -LLL '(cn=Turanga Leela)' cn"
  25. steps:
  26. - uses: actions/checkout@v3
  27. - uses: actions/setup-node@v3
  28. with:
  29. node-version: 'lts/*'
  30. - name: Install Packages
  31. run: npm install
  32. - name: Run Tests
  33. run: npm run test:integration