From 1d916c445b6059d6286657df18c8c369b20a05f1 Mon Sep 17 00:00:00 2001 From: hezijie Date: Wed, 18 Sep 2024 13:46:28 +0800 Subject: [PATCH] add debug action --- .github/workflows/weekly-e2e.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/weekly-e2e.yaml b/.github/workflows/weekly-e2e.yaml index ef36d53be..6dd164a87 100644 --- a/.github/workflows/weekly-e2e.yaml +++ b/.github/workflows/weekly-e2e.yaml @@ -17,6 +17,12 @@ jobs: steps: - name: checkout uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0 + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + env: + ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }} + ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }} + ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID_CRONTEST }} - name: test all examples continue-on-error: true timeout-minutes: 1440 @@ -27,7 +33,7 @@ jobs: export ARM_SUBSCRIPTION_ID=${{ secrets.ARM_SUBSCRIPTION_ID }} export ARM_TENANT_ID=${{ secrets.ARM_TENANT_ID }} export ARM_CLIENT_ID=${{ secrets.ARM_CLIENT_ID_CRONTEST }} - docker run --rm -v $(pwd):/src -w /src/test --network=host -e ARM_SUBSCRIPTION_ID -e ARM_CLIENT_ID -e ARM_TENANT_ID -e ARM_OIDC_REQUEST_TOKEN -e ARM_OIDC_REQUEST_URL -e ARM_USE_OIDC=true -e CHANGED_FOLDERS mcr.microsoft.com/azterraform sh -c "go mod tidy && go test -timeout=1440m -parallel 10 -v ./e2e" + docker run --rm -v $(pwd):/src -w /src/test --network=host -e ARM_SUBSCRIPTION_ID -e ARM_CLIENT_ID -e ARM_TENANT_ID -e ARM_OIDC_REQUEST_TOKEN -e ARM_OIDC_REQUEST_URL -e ARM_USE_OIDC=true -e CHANGED_FOLDERS mcr.microsoft.com/azterraform sh -c "pkenv install 1.10.2 && go mod tidy && go test -timeout=1440m -parallel 10 -v ./e2e" - name: Update run: | docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform sh scripts/update-test-record.sh