diff --git a/.github/workflows/test-analysis.yml b/.github/workflows/test-analysis.yml index eac0f8bb0..97974db50 100644 --- a/.github/workflows/test-analysis.yml +++ b/.github/workflows/test-analysis.yml @@ -20,14 +20,13 @@ jobs: distribution: 'temurin' java-version: '11' cache: 'maven' - - name: Create tunnel to data - run: | - curl -sL https://aka.ms/InstallAzureCLIDeb | bash - wget https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl - chmod +x ./kubectl - az login --service-principal -u "${{ secrets.AZURE_CLIENT_ID }}" -p "${{secrets.AZURE_CREDENTIALS}}" --tenant "${{ secrets.AZURE_TENANT_ID }}" - az aks get-credentials --resource-group opencga --name aks-uks-opencga-test-001 --subscription "${{ secrets.AZURE_SUBSCRIPTION_ID }}" - ./kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27017:27017 & + - name: Az CLI login + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + creds: ${{secrets.AZURE_CREDENTIALS}} - name: Install dependencies branches run: | if [ -f "./.github/workflows/scripts/get_same_branch.sh" ]; then