name: External IDP Integration Tests on: pull_request: branches: - master # This ensures that previous jobs for the PR are canceled when the PR is # updated. concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true jobs: ldap-test: name: LDAP Tests with Go ${{ matrix.go-version }} runs-on: ubuntu-latest services: openldap: image: quay.io/minio/openldap ports: - 389:389 - 636:636 env: LDAP_ORGANIZATION: "MinIO Inc" LDAP_DOMAIN: "min.io" LDAP_ADMIN_PASSWORD: "admin" strategy: matrix: go-version: [1.16.x, 1.17.x] steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Test LDAP env: LDAP_TEST_SERVER: "localhost:389" run: | sudo sysctl net.ipv6.conf.all.disable_ipv6=0 sudo sysctl net.ipv6.conf.default.disable_ipv6=0 make test-ldap