81
81
- 5432:5432
82
82
steps :
83
83
- name : Checkout ${{ inputs.branch }}
84
- uses : actions/checkout@v2
84
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
85
85
with :
86
86
ref : ${{ inputs.branch }}
87
87
- name : Get year/month for cache key
90
90
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
91
91
shell : bash
92
92
- name : Cache Gradle downloads
93
- uses : actions/cache@v4
93
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
94
94
id : cache-gradle
95
95
with :
96
96
path : |
@@ -101,13 +101,13 @@ jobs:
101
101
key : gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
102
102
- name : Set up JDK 11
103
103
if : ${{ startsWith( inputs.branch, 'wip/2' ) }}
104
- uses : actions/setup-java@v2.2 .0
104
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
105
105
with :
106
106
distribution : ' temurin'
107
107
java-version : 11
108
108
- name : Set up JDK 17
109
109
if : ${{ !startsWith( inputs.branch, 'wip/2' ) }}
110
- uses : actions/setup-java@v2.2 .0
110
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
111
111
with :
112
112
distribution : ' temurin'
113
113
java-version : 17
@@ -116,7 +116,7 @@ jobs:
116
116
- name : Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
117
117
run : ./gradlew :${{ matrix.example }}:runAllExamplesOn${{ matrix.db }}
118
118
- name : Upload reports (if build failed)
119
- uses : actions/upload-artifact@v4
119
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
120
120
if : failure()
121
121
with :
122
122
name : reports-examples-${{ matrix.db }}
@@ -130,7 +130,7 @@ jobs:
130
130
db : [ 'MariaDB', 'MySQL', 'PostgreSQL', 'MSSQLServer', 'CockroachDB', 'Db2', 'Oracle' ]
131
131
steps :
132
132
- name : Checkout ${{ inputs.branch }}
133
- uses : actions/checkout@v2
133
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
134
134
with :
135
135
ref : ${{ inputs.branch }}
136
136
- name : Get year/month for cache key
@@ -139,7 +139,7 @@ jobs:
139
139
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
140
140
shell : bash
141
141
- name : Cache Gradle downloads
142
- uses : actions/cache@v4
142
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
143
143
id : cache-gradle
144
144
with :
145
145
path : |
@@ -150,13 +150,13 @@ jobs:
150
150
key : gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
151
151
- name : Set up JDK 11
152
152
if : ${{ startsWith( inputs.branch, 'wip/2' ) }}
153
- uses : actions/setup-java@v2.2 .0
153
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
154
154
with :
155
155
distribution : ' temurin'
156
156
java-version : 11
157
157
- name : Set up JDK 17
158
158
if : ${{ !startsWith( inputs.branch, 'wip/2' ) }}
159
- uses : actions/setup-java@v2.2 .0
159
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
160
160
161
161
with :
162
162
distribution : ' temurin'
@@ -166,7 +166,7 @@ jobs:
166
166
- name : Build and Test with ${{ matrix.db }}
167
167
run : ./gradlew build -PshowStandardOutput -Pdocker -Pdb=${{ matrix.db }}
168
168
- name : Upload reports (if build failed)
169
- uses : actions/upload-artifact@v4
169
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
170
170
if : failure()
171
171
with :
172
172
name : reports-db-${{ matrix.db }}
@@ -196,7 +196,7 @@ jobs:
196
196
- { name: "25-ea", java_version_numeric: 25, from: 'jdk.java.net', jvm_args: '--enable-preview' }
197
197
steps :
198
198
- name : Checkout ${{ inputs.branch }}
199
- uses : actions/checkout@v2
199
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
200
200
with :
201
201
ref : ${{ inputs.branch }}
202
202
- name : Get year/month for cache key
@@ -217,7 +217,7 @@ jobs:
217
217
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
218
218
- name : Cache Maven/Gradle Dependency/Dist Caches
219
219
id : cache-maven
220
- uses : actions/cache@v4
220
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
221
221
# if it's not a pull request, we restore and save the cache
222
222
if : github.event_name != 'pull_request'
223
223
with :
@@ -234,7 +234,7 @@ jobs:
234
234
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
235
235
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
236
236
- name : Restore Maven/Gradle Dependency/Dist Caches
237
- uses : actions/cache/restore@v4
237
+ uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
238
238
# if it's a pull request, we restore the cache, but we don't save it
239
239
if : github.event_name == 'pull_request'
240
240
with :
@@ -250,13 +250,13 @@ jobs:
250
250
251
251
- name : Set up latest JDK ${{ matrix.java.name }} from jdk.java.net
252
252
if : matrix.java.from == 'jdk.java.net'
253
- uses : oracle-actions/setup-java@v1
253
+ uses : oracle-actions/setup-java@2e744f723b003fdd759727d0ff654c8717024845 # v1.4.0
254
254
with :
255
255
website : jdk.java.net
256
256
release : ${{ matrix.java.java_version_numeric }}
257
257
- name : Set up latest JDK ${{ matrix.java.name }} from Adoptium
258
258
if : matrix.java.from == '' || matrix.java.from == 'adoptium.net'
259
- uses : actions/setup-java@v2.2 .0
259
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
260
260
with :
261
261
distribution : ' temurin'
262
262
java-version : ${{ matrix.java.java_version_numeric }}
@@ -266,14 +266,14 @@ jobs:
266
266
run : echo "::set-output name=path::${JAVA_HOME}"
267
267
- name : Set up JDK 11
268
268
if : ${{ startsWith( inputs.branch, 'wip/2' ) }}
269
- uses : actions/setup-java@v2.2 .0
269
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
270
270
with :
271
271
distribution : ' temurin'
272
272
java-version : 11
273
273
check-latest : true
274
274
- name : Set up JDK 17
275
275
if : ${{ !startsWith( inputs.branch, 'wip/2' ) }}
276
- uses : actions/setup-java@v2.2 .0
276
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
277
277
with :
278
278
distribution : ' temurin'
279
279
java-version : 17
@@ -292,7 +292,7 @@ jobs:
292
292
-Porg.gradle.java.installations.paths=${{ steps.mainjdk-exportpath.outputs.path }},${{ steps.testjdk-exportpath.outputs.path }} \
293
293
${{ matrix.java.jvm_args && '-Ptest.jdk.launcher.args=' }}${{ matrix.java.jvm_args }}
294
294
- name : Upload reports (if build failed)
295
- uses : actions/upload-artifact@v4
295
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
296
296
if : failure()
297
297
with :
298
298
name : reports-java${{ matrix.java.name }}
0 commit comments