Skip to content

Commit

Permalink
use pull_request event and environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Sep 12, 2024
1 parent 66d416e commit 3246c9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
runs-on: ubuntu-latest
environment:
name: acctests
env:
ARM_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
ARM_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
steps:
- name: checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0
Expand All @@ -33,9 +37,6 @@ jobs:
echo "change files" $ALL_CHANGED_FILES
export ARM_OIDC_REQUEST_TOKEN=$ACTIONS_ID_TOKEN_REQUEST_TOKEN
export ARM_OIDC_REQUEST_URL=$ACTIONS_ID_TOKEN_REQUEST_URL
export ARM_SUBSCRIPTION_ID=${{ env.AZURE_SUBSCRIPTION_ID }}
export ARM_TENANT_ID=${{ env.AZURE_TENANT_ID }}
export ARM_CLIENT_ID=${{ env.AZURE_CLIENT_ID }}
docker run --rm -v $(pwd):/src -w /src/test --network=host -e ARM_SUBSCRIPTION_ID -e ARM_TENANT_ID -e ARM_CLIENT_ID -e ARM_OIDC_REQUEST_TOKEN -e ARM_OIDC_REQUEST_URL -e ARM_USE_OIDC=true -e CHANGED_FOLDERS mcr.microsoft.com/azterraform:latest sh -c "pkenv install 1.10.2 && go mod tidy && go test -timeout=360m -v ./e2e"
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3.1.3
with:
Expand Down

0 comments on commit 3246c9a

Please sign in to comment.