-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #788 from aws/dev
chore: release 1.15
- Loading branch information
Showing
63 changed files
with
350 additions
and
933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
name: AWS CodeBuild CI | ||
|
||
on: | ||
# Manually trigger on specific branches | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
branches: | ||
- main | ||
|
@@ -19,28 +24,36 @@ jobs: | |
role-to-assume: ${{ secrets.CI_MAIN_TESTING_ACCOUNT_ROLE_ARN }} | ||
role-duration-seconds: 7200 | ||
aws-region: us-west-2 | ||
|
||
- name: Setup .NET Core 6.0 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- name: Invoke Load Balancer Lambda | ||
id: lambda | ||
shell: pwsh | ||
run: | | ||
aws lambda invoke response.json --function-name "${{ secrets.CI_TESTING_LOAD_BALANCER_LAMBDA_NAME }}" --cli-binary-format raw-in-base64-out --payload '{\"Roles\": \"${{ secrets.CI_TEST_RUNNER_ACCOUNT_ROLES }}\", \"ProjectName\": \"${{ secrets.CI_TESTING_CODE_BUILD_PROJECT_NAME }}\", \"Branch\": \"${{ github.sha }}\"}' | ||
$roleArn=$(cat ./response.json) | ||
"roleArn=$($roleArn -replace '"', '')" >> $env:GITHUB_OUTPUT | ||
- name: Configure Test Runner Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: ${{ steps.lambda.outputs.roleArn }} | ||
role-duration-seconds: 7200 | ||
aws-region: us-west-2 | ||
|
||
- name: Run CodeBuild | ||
id: codebuild | ||
uses: aws-actions/[email protected] | ||
with: | ||
project-name: ${{ secrets.CI_TESTING_CODE_BUILD_PROJECT_NAME }} | ||
env-vars-for-codebuild: CODECOV_TOKEN | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: CodeBuild Link | ||
shell: pwsh | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.