Skip to content

Commit aa0af48

Browse files
committed
Integ tests only on java file changes
1 parent fc49029 commit aa0af48

File tree

2 files changed

+31
-17
lines changed

2 files changed

+31
-17
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: AWS CodeBuild CI Integration Tests
2+
on:
3+
pull_request:
4+
merge_group:
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- '**/*.java'
10+
11+
permissions:
12+
id-token: write
13+
14+
jobs:
15+
integration-tests:
16+
if: github.repository == 'aws/aws-sdk-java-v2'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Configure AWS Credentials
20+
uses: aws-actions/configure-aws-credentials@v4
21+
with:
22+
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
23+
aws-region: us-west-2
24+
role-duration-seconds: 7200
25+
- name: Run Integration Test build
26+
uses: aws-actions/aws-codebuild-run-build@v1
27+
timeout-minutes: 180
28+
with:
29+
project-name: aws-sdk-java-v2-IntegrationTest-JDK8
30+
hide-cloudwatch-logs: true
31+

.github/workflows/codebuild-ci.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,6 @@ jobs:
2929
timeout-minutes: 120
3030
with:
3131
project-name: aws-sdk-java-v2
32-
integration-tests:
33-
if: github.repository == 'aws/aws-sdk-java-v2'
34-
runs-on: ubuntu-latest
35-
steps:
36-
- name: Configure AWS Credentials
37-
uses: aws-actions/configure-aws-credentials@v4
38-
with:
39-
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
40-
aws-region: us-west-2
41-
role-duration-seconds: 7200
42-
- name: Run Integration Test build
43-
uses: aws-actions/aws-codebuild-run-build@v1
44-
hide-cloudwatch-logs: true
45-
timeout-minutes: 180
46-
with:
47-
project-name: aws-sdk-java-v2-IntegrationTest-JDK8
48-
4932
jdk11-build:
5033
if: github.repository == 'aws/aws-sdk-java-v2'
5134
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)