smb-kerberos.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: Samba Kerberos SSO
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - stable*
  7. paths:
  8. - 'apps/files_external/**'
  9. - '.github/workflows/smb-kerberos.yml'
  10. pull_request:
  11. paths:
  12. - 'apps/files_external/**'
  13. - '.github/workflows/smb-kerberos.yml'
  14. jobs:
  15. smb-kerberos-tests:
  16. runs-on: ubuntu-latest
  17. if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
  18. name: smb-kerberos-sso
  19. steps:
  20. - name: Checkout server
  21. uses: actions/checkout@v3
  22. with:
  23. submodules: true
  24. - name: Checkout user_saml
  25. uses: actions/checkout@v3
  26. with:
  27. repository: nextcloud/user_saml
  28. path: apps/user_saml
  29. ref: stable-5.2
  30. - name: Pull images
  31. run: |
  32. docker pull ghcr.io/icewind1991/samba-krb-test-dc
  33. docker pull ghcr.io/icewind1991/samba-krb-test-apache
  34. docker pull ghcr.io/icewind1991/samba-krb-test-client
  35. docker tag ghcr.io/icewind1991/samba-krb-test-dc icewind1991/samba-krb-test-dc
  36. docker tag ghcr.io/icewind1991/samba-krb-test-apache icewind1991/samba-krb-test-apache
  37. docker tag ghcr.io/icewind1991/samba-krb-test-client icewind1991/samba-krb-test-client
  38. - name: Setup AD-DC
  39. run: |
  40. DC_IP=$(apps/files_external/tests/sso-setup/start-dc.sh)
  41. apps/files_external/tests/sso-setup/start-apache.sh $DC_IP $PWD
  42. echo "DC_IP=$DC_IP" >> $GITHUB_ENV
  43. - name: Set up Nextcloud
  44. run: |
  45. apps/files_external/tests/sso-setup/setup-sso-nc.sh
  46. - name: Test SSO
  47. run: |
  48. apps/files_external/tests/sso-setup/test-sso-smb.sh ${{ env.DC_IP }}
  49. - name: Show logs
  50. if: failure()
  51. run: |
  52. FILEPATH=$(docker exec --user 33 apache ./occ log:file | grep "Log file:" | cut -d' ' -f3)
  53. echo "$FILEPATH:"
  54. docker exec --user 33 apache cat $FILEPATH