Skip to content

Commit a8f2240

Browse files
committed
collect metrics for CI checks
1 parent 2b88aa1 commit a8f2240

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
pull_request:
55
workflow_dispatch:
66

7-
permissions: { }
7+
permissions:
8+
id-token: write
9+
contents: read
810

911
# Allow one instance of this workflow per pull request, and cancel older runs when new changes are pushed
1012
concurrency:
@@ -29,6 +31,8 @@ jobs:
2931
- 17
3032
- 21
3133
steps:
34+
- name: Set start time
35+
run: echo "WORKFLOW_START_TIME=$(date +%s)" >> $GITHUB_ENV
3236
- name: Checkout sources
3337
uses: actions/checkout@v4
3438
with:
@@ -46,6 +50,8 @@ jobs:
4650
pwd
4751
ls -lsa
4852
./gradlew -Ptest.java.version=${{ matrix.java-version }} jvmTest --stacktrace
53+
- name: Upload metrics
54+
uses: ./.github/actions/workflow-metrics
4955
- name: Save Test Reports
5056
if: failure()
5157
uses: actions/upload-artifact@v4
@@ -60,6 +66,8 @@ jobs:
6066
matrix:
6167
os: [ ubuntu-latest, macos-latest, windows-latest ]
6268
steps:
69+
- name: Set start time
70+
run: echo "WORKFLOW_START_TIME=$(date +%s)" >> $GITHUB_ENV
6371
- name: Checkout sources
6472
uses: actions/checkout@v4
6573
with:
@@ -99,6 +107,8 @@ jobs:
99107
./gradlew apiCheck
100108
./gradlew test jvmTest
101109
./gradlew testAllProtocols
110+
- name: Upload metrics
111+
uses: ./.github/actions/workflow-metrics
102112
- name: Save Test Reports
103113
if: failure()
104114
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)