Skip to content

Commit 0c0cd7d

Browse files
committed
feat: use action
1 parent 4ced053 commit 0c0cd7d

File tree

5 files changed

+18
-34
lines changed

5 files changed

+18
-34
lines changed

.github/workflows/codebuild-ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ jobs:
8686
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
8787
aws-region: us-west-2
8888
- name: Configure Gradle
89-
run: |
90-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
91-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
89+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
9290
- name: Run Service Check Batch and Calculate Artifact Size Metrics
9391
id: svc-check-batch
9492
run: |
@@ -217,9 +215,7 @@ jobs:
217215
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
218216
aws-region: us-west-2
219217
- name: Configure Gradle
220-
run: |
221-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
222-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
218+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
223219
- name: Calculate Artifact Size Metrics
224220
id: svc-check-batch
225221
run: |

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ jobs:
3434
- name: Setup Build
3535
uses: ./aws-sdk-kotlin/.github/actions/setup-build
3636
- name: Configure Gradle
37-
working-directory: ./aws-sdk-kotlin
38-
run: |
39-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
40-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
37+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
38+
with:
39+
working-directory: ./aws-sdk-kotlin
4140
- name: Test
4241
working-directory: ./aws-sdk-kotlin
4342
shell: bash
@@ -65,11 +64,10 @@ jobs:
6564
path: 'aws-sdk-kotlin'
6665
- name: Setup Build
6766
uses: ./aws-sdk-kotlin/.github/actions/setup-build
68-
- name: Configure smithy-kotlin Gradle
69-
working-directory: ./smithy-kotlin
70-
run: |
71-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
72-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
67+
- name: Configure Gradle - smithy-kotlin
68+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
69+
with:
70+
working-directory: ./smithy-kotlin
7371
- name: Build smithy-kotlin
7472
working-directory: ./smithy-kotlin
7573
shell: bash
@@ -78,11 +76,10 @@ jobs:
7876
pwd
7977
./gradlew --parallel assemble
8078
./gradlew publishToMavenLocal
81-
- name: Configure aws-sdk-kotlin Gradle
82-
working-directory: ./aws-sdk-kotlin
83-
run: |
84-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
85-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
79+
- name: Configure Gradle aws-sdk-kotlin
80+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
81+
with:
82+
working-directory: ./aws-sdk-kotlin
8683
- name: Test
8784
working-directory: ./aws-sdk-kotlin
8885
shell: bash

.github/workflows/kat-transform.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ jobs:
3939
aws-region: us-west-2
4040

4141
- name: Configure Gradle
42-
working-directory: ./aws-sdk-kotlin
43-
run: |
44-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
45-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
42+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
43+
with:
44+
working-directory: ./aws-sdk-kotlin
4645

4746
- name: Setup kat
4847
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main

.github/workflows/lint.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout sources
2323
uses: actions/checkout@v4
24-
with:
25-
path: 'aws-sdk-kotlin'
2624
- name: Configure Gradle
27-
working-directory: ./aws-sdk-kotlin
28-
run: |
29-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
30-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
25+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
3126
- name: Lint ${{ env.PACKAGE_NAME }}
32-
working-directory: ./aws-sdk-kotlin
3327
run: |
3428
./gradlew ktlint

.github/workflows/update-release-branch.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ jobs:
4444
java-version: 17
4545
cache: 'gradle'
4646
- name: Configure Gradle
47-
run: |
48-
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
49-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
47+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
5048
- name: Check merge base
5149
shell: bash
5250
run: |

0 commit comments

Comments
 (0)