Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/codebuild-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,17 @@ jobs:
env:
PR: ${{ github.event.number }}
BRANCH: ${{ github.head_ref || 'master'}}
BASE: ${{ github.base_ref }}
BASE: ${{ github.base_ref }}
endpoints-tests:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2
role-duration-seconds: 7200
- name: Run endpoints test
uses: aws-actions/aws-codebuild-run-build@v1
with:
project-name: aws-sdk-java-v2-endpoints-test
17 changes: 17 additions & 0 deletions buildspecs/endpoints-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 0.2

phases:
install:
runtime-versions:
java: "$JAVA_RUNTIME"

build:
commands:
- mvn clean install -P endpoint-tests -T1C $MAVEN_OPTIONS
finally:
- mkdir -p codebuild-test-reports
- find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;
reports:
IntegTests:
files:
- 'codebuild-test-reports/**/*'
2 changes: 2 additions & 0 deletions buildspecs/resources/ci.cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Resources:
- !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-JDK8-windows
- !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-native-image-test
- !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-sonar
- !Sub arn:aws:codebuild:${ AWS::Region }:${ AWS::AccountId }:project/aws-sdk-java-v2-endpoints-test
- Effect: Allow
Action:
- logs:GetLogEvents
Expand All @@ -67,6 +68,7 @@ Resources:
- !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-JDK8-windows:*
- !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-native-image-test:*
- !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-sonar:*
- !Sub arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/codebuild/aws-sdk-java-v2-endpoints-test:*

GithubOidc:
Type: AWS::IAM::OIDCProvider
Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@
<exclude>**/*IntegrationTests.java</exclude>
<exclude>**/*IntegTest.java</exclude>
<exclude>**/*IntegrationTestCase.java</exclude>
<exclude>**/*ClientEndpointTests.java</exclude>
<exclude>**/*EndpointProviderTests.java</exclude>
</excludes>
<includes>
<include>**/Test*.java</include>
Expand Down