Skip to content

Commit d977828

Browse files
committed
feat: use action
1 parent b94a3f8 commit d977828

File tree

4 files changed

+17
-32
lines changed

4 files changed

+17
-32
lines changed

.github/workflows/artifact-size-metrics.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
3333
aws-region: us-west-2
3434
- name: Configure Gradle
35-
run: |
36-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
37-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
35+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
3836
- name: Generate Artifact Size Metrics
3937
run: ./gradlew artifactSizeMetrics
4038
- name: Save Artifact Size Metrics
@@ -59,9 +57,7 @@ jobs:
5957
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
6058
aws-region: us-west-2
6159
- name: Configure Gradle
62-
run: |
63-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
64-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
60+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
6561
- name: Generate Artifact Size Metrics
6662
run: ./gradlew artifactSizeMetrics
6763
- name: Analyze Artifact Size Metrics

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ jobs:
4040
java-version: 17
4141
cache: 'gradle'
4242
- name: Configure Gradle
43-
run: |
44-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
45-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
43+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
4644
- name: Test
4745
shell: bash
4846
run: |
@@ -64,9 +62,7 @@ jobs:
6462
java-version: 17
6563
cache: 'gradle'
6664
- name: Configure Gradle
67-
run: |
68-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
69-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
65+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
7066
- name: Test
7167
shell: bash
7268
run: |
@@ -93,9 +89,7 @@ jobs:
9389
java-version: 17
9490
cache: 'gradle'
9591
- name: Configure Gradle
96-
run: |
97-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
98-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
92+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
9993
- name: Test
10094
shell: bash
10195
run: |
@@ -123,16 +117,14 @@ jobs:
123117
# smithy-kotlin is checked out as a sibling dir which will automatically make it an included build
124118
path: 'aws-sdk-kotlin'
125119
repository: 'awslabs/aws-sdk-kotlin'
126-
- name: Configure Gradle for smithy-kotlin
127-
working-directory: ./smithy-kotlin
128-
run: |
129-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
130-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
131-
- name: Configure Gradle for aws-sdk-kotlin
132-
working-directory: ./aws-sdk-kotlin
133-
run: |
134-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
135-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
120+
- name: Configure Gradle - smithy-kotlin
121+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
122+
with:
123+
working-directory: ./smithy-kotlin
124+
- name: Configure Gradle - aws-sdk-kotlin
125+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
126+
with:
127+
working-directory: ./aws-sdk-kotlin
136128
- name: Configure JDK
137129
uses: actions/setup-java@v3
138130
with:

.github/workflows/kat-transform.yml

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

3838
- name: Configure Gradle
39-
working-directory: ./smithy-kotlin
40-
run: |
41-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
42-
gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-8.12-bin.zip
39+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
40+
with:
41+
working-directory: ./smithy-kotlin
4342

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

.github/workflows/lint.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222
- name: Checkout sources
2323
uses: actions/checkout@v2
2424
- name: Configure Gradle
25-
run: |
26-
# Keep gradle version in sync with smithy-kotlin/gradle/wrapper/gradle-wrapper.properties
27-
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
2826
- name: Lint ${{ env.PACKAGE_NAME }}
2927
run: |
3028
./gradlew ktlint

0 commit comments

Comments
 (0)