Skip to content

Commit

Permalink
test: set env only for integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian authored and yndu13 committed Jul 26, 2024
1 parent 37639cc commit 3ead6a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 3ead6a3

Please sign in to comment.