Skip to content

Commit

Permalink
Add back local stack for CN
Browse files Browse the repository at this point in the history
  • Loading branch information
sky333999 committed Dec 3, 2024
1 parent d68d12c commit cf93e82
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,22 @@ jobs:
run: |
echo "ec2_linux_matrix: ${{ steps.set-matrix.outputs.ec2_linux_matrix }}"
StartLocalStackCN:
name: 'StartLocalStackCN'
needs: [ OutputEnvVariables ]
uses: ./.github/workflows/start-localstack.yml
secrets: inherit
permissions:
id-token: write
contents: read
with:
region: cn-north-1
test_repo_name: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_NAME }}
test_repo_branch: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_BRANCH }}
terraform_assume_role: ${{ vars.TERRAFORM_AWS_ASSUME_ROLE_CN }}
test_repo_url: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_URL }}
github_sha: ${{github.sha}}
s3_integration_bucket: ${{ vars.S3_INTEGRATION_BUCKET_CN }}
# StartLocalStackCN:
# name: 'StartLocalStackCN'
# needs: [ OutputEnvVariables ]
# uses: ./.github/workflows/start-localstack.yml
# secrets: inherit
# permissions:
# id-token: write
# contents: read
# with:
# region: cn-north-1
# test_repo_name: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_NAME }}
# test_repo_branch: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_BRANCH }}
# terraform_assume_role: ${{ vars.TERRAFORM_AWS_ASSUME_ROLE_CN }}
# test_repo_url: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_URL }}
# github_sha: ${{github.sha}}
# s3_integration_bucket: ${{ vars.S3_INTEGRATION_BUCKET_CN }}

CloudformationTest:
needs: [GenerateTestMatrix]
Expand Down Expand Up @@ -246,7 +246,7 @@ jobs:
secrets: inherit

EC2LinuxIntegrationTestCN:
needs: [ StartLocalStackCN, GenerateTestMatrix, OutputEnvVariables, MakeAndUploadVendor ]
needs: [ GenerateTestMatrix, OutputEnvVariables, MakeAndUploadVendor ]
name: 'EC2LinuxCN'
uses: ./.github/workflows/ec2-integration-test.yml
with:
Expand All @@ -263,19 +263,19 @@ jobs:
s3_integration_bucket: ${{ vars.S3_INTEGRATION_BUCKET_CN }}
secrets: inherit

StopLocalStackCN:
name: 'StopLocalStackCN'
if: ${{ always() && needs.StartLocalStackCN.result == 'success' }}
needs: [ StartLocalStackCN, EC2LinuxIntegrationTestCN ]
uses: ./.github/workflows/stop-localstack.yml
secrets: inherit
permissions:
id-token: write
contents: read
with:
region: cn-north-1
test_repo_name: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_NAME }}
test_repo_branch: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_BRANCH }}
terraform_assume_role: ${{ vars.TERRAFORM_AWS_ASSUME_ROLE_CN }}
github_sha: ${{github.sha}}
s3_integration_bucket: ${{ vars.S3_INTEGRATION_BUCKET_CN }}
# StopLocalStackCN:
# name: 'StopLocalStackCN'
# if: ${{ always() && needs.StartLocalStackCN.result == 'success' }}
# needs: [ StartLocalStackCN, EC2LinuxIntegrationTestCN ]
# uses: ./.github/workflows/stop-localstack.yml
# secrets: inherit
# permissions:
# id-token: write
# contents: read
# with:
# region: cn-north-1
# test_repo_name: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_NAME }}
# test_repo_branch: ${{ needs.OutputEnvVariables.outputs.CWA_GITHUB_TEST_REPO_BRANCH }}
# terraform_assume_role: ${{ vars.TERRAFORM_AWS_ASSUME_ROLE_CN }}
# github_sha: ${{github.sha}}
# s3_integration_bucket: ${{ vars.S3_INTEGRATION_BUCKET_CN }}

0 comments on commit cf93e82

Please sign in to comment.