88 pull_request :
99 workflow_dispatch :
1010
11+ permissions :
12+ id-token : write
13+ contents : read
14+
1115# Allow one instance of this workflow per pull request, and cancel older runs when new changes are pushed
1216concurrency :
1317 group : ci-pr-${{ github.ref }}
3135 - 17
3236 - 21
3337 steps :
38+ - name : Set start time
39+ run : echo "WORKFLOW_START_TIME=$(date +%s)" >> $GITHUB_ENV
3440 - name : Checkout sources
3541 uses : actions/checkout@v4
3642 - name : Configure JDK
4551 shell : bash
4652 run : |
4753 ./gradlew -Ptest.java.version=${{ matrix.java-version }} jvmTest --stacktrace
54+ - name : Upload metrics
55+ uses : ./aws-sdk-kotlin/.github/actions/workflow-metrics
4856
4957 all-platforms :
5058 runs-on : ${{ matrix.os }}
5361 matrix :
5462 os : [ ubuntu-latest, macos-latest, windows-latest ]
5563 steps :
64+ - name : Set start time
65+ shell : bash
66+ run : echo "WORKFLOW_START_TIME=$(date +%s)" >> $GITHUB_ENV
5667 - name : Checkout sources
5768 uses : actions/checkout@v4
5869 - name : Configure JDK
6980 echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
7081 ./gradlew apiCheck
7182 ./gradlew test jvmTest
83+ - name : Upload metrics
84+ uses : ./aws-sdk-kotlin/.github/actions/workflow-metrics
7285 - name : Save Test Reports
7386 if : failure()
7487 uses : actions/upload-artifact@v4
7992 protocol-tests :
8093 runs-on : ubuntu-latest
8194 steps :
95+ - name : Set start time
96+ shell : bash
97+ run : echo "WORKFLOW_START_TIME=$(date +%s)" >> $GITHUB_ENV
8298 - name : Checkout sources
8399 uses : actions/checkout@v4
84100 - name : Configure JDK
@@ -94,10 +110,14 @@ jobs:
94110 run : |
95111 ./gradlew publishToMavenLocal
96112 ./gradlew testAllProtocols
97-
113+ - name : Upload metrics
114+ uses : ./aws-sdk-kotlin/.github/actions/workflow-metrics
98115 downstream :
99116 runs-on : ubuntu-latest
100117 steps :
118+ - name : Set start time
119+ shell : bash
120+ run : echo "WORKFLOW_START_TIME=$(date +%s)" >> $GITHUB_ENV
101121 - name : Checkout sources
102122 uses : actions/checkout@v4
103123 with :
@@ -147,4 +167,6 @@ jobs:
147167 sed -i "s/smithy-kotlin-codegen-version = .*$/smithy-kotlin-codegen-version = \"$SMITHY_KOTLIN_CODEGEN_VERSION\"/" gradle/libs.versions.toml
148168 ./gradlew --parallel publishToMavenLocal
149169 ./gradlew test jvmTest
150- ./gradlew testAllProtocols
170+ ./gradlew testAllProtocols
171+ - name : Upload metrics
172+ uses : ./aws-sdk-kotlin/.github/actions/workflow-metrics
0 commit comments