From 3ead6a389135bc9eadcadc7bde6ee2815b7a1c10 Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Fri, 26 Jul 2024 12:16:25 +0800 Subject: [PATCH] test: set env only for integration test --- .github/workflows/go.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 51130b3..7357bb9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,12 +15,6 @@ jobs: # test against latest update of each major Java version, as well as specific updates of LTS versions: go: [1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18] fail-fast: false - env: - SUB_ALICLOUD_ACCESS_KEY: ${{ secrets.SUB_ALICLOUD_ACCESS_KEY }} - SUB_ALICLOUD_SECRET_KEY: ${{ secrets.SUB_ALICLOUD_SECRET_KEY }} - ALICLOUD_ROLE_ARN: ${{ secrets.ALICLOUD_ROLE_ARN }} - ALICLOUD_ROLE_SESSION_NAME: ${{ secrets.ALICLOUD_ROLE_SESSION_NAME }} - ALICLOUD_ROLE_SESSION_EXPIRATION: ${{ secrets.ALICLOUD_ROLE_SESSION_EXPIRATION }} steps: - uses: actions/checkout@v3 @@ -46,3 +40,9 @@ jobs: - name: Integration Test run: go test -v -timeout 120s ./integration/... if: env.SUB_ALICLOUD_ACCESS_KEY != '' + env: + SUB_ALICLOUD_ACCESS_KEY: ${{ secrets.SUB_ALICLOUD_ACCESS_KEY }} + SUB_ALICLOUD_SECRET_KEY: ${{ secrets.SUB_ALICLOUD_SECRET_KEY }} + ALICLOUD_ROLE_ARN: ${{ secrets.ALICLOUD_ROLE_ARN }} + ALICLOUD_ROLE_SESSION_NAME: ${{ secrets.ALICLOUD_ROLE_SESSION_NAME }} + ALICLOUD_ROLE_SESSION_EXPIRATION: ${{ secrets.ALICLOUD_ROLE_SESSION_EXPIRATION }}