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 : |
@@ -100,7 +100,7 @@ jobs:
100
100
# refresh cache every month to avoid unlimited growth
101
101
key : gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
102
102
- name : Set up JDK 11
103
- uses : actions/setup-java@v2.2 .0
103
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
104
104
with :
105
105
distribution : ' temurin'
106
106
java-version : 11
@@ -109,7 +109,7 @@ jobs:
109
109
- name : Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
110
110
run : ./gradlew :${{ matrix.example }}:runAllExamplesOn${{ matrix.db }}
111
111
- name : Upload reports (if build failed)
112
- uses : actions/upload-artifact@v4
112
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
113
113
if : failure()
114
114
with :
115
115
name : reports-examples-${{ matrix.db }}
@@ -123,7 +123,7 @@ jobs:
123
123
db : [ 'MariaDB', 'MySQL', 'PostgreSQL', 'MSSQLServer', 'CockroachDB', 'Db2', 'Oracle' ]
124
124
steps :
125
125
- name : Checkout ${{ inputs.branch }}
126
- uses : actions/checkout@v2
126
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
127
127
with :
128
128
ref : ${{ inputs.branch }}
129
129
- name : Get year/month for cache key
@@ -132,7 +132,7 @@ jobs:
132
132
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
133
133
shell : bash
134
134
- name : Cache Gradle downloads
135
- uses : actions/cache@v4
135
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
136
136
id : cache-gradle
137
137
with :
138
138
path : |
@@ -142,7 +142,7 @@ jobs:
142
142
# refresh cache every month to avoid unlimited growth
143
143
key : gradle-db-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
144
144
- name : Set up JDK 11
145
- uses : actions/setup-java@v2.2 .0
145
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
146
146
with :
147
147
distribution : ' temurin'
148
148
java-version : 11
@@ -151,7 +151,7 @@ jobs:
151
151
- name : Build and Test with ${{ matrix.db }}
152
152
run : ./gradlew build -PshowStandardOutput -Pdocker -Pdb=${{ matrix.db }}
153
153
- name : Upload reports (if build failed)
154
- uses : actions/upload-artifact@v4
154
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
155
155
if : failure()
156
156
with :
157
157
name : reports-db-${{ matrix.db }}
@@ -182,7 +182,7 @@ jobs:
182
182
- { name: "25-ea", java_version_numeric: 25, from: 'jdk.java.net', jvm_args: '--enable-preview' }
183
183
steps :
184
184
- name : Checkout ${{ inputs.branch }}
185
- uses : actions/checkout@v2
185
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
186
186
with :
187
187
ref : ${{ inputs.branch }}
188
188
- name : Get year/month for cache key
@@ -203,7 +203,7 @@ jobs:
203
203
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
204
204
- name : Cache Maven/Gradle Dependency/Dist Caches
205
205
id : cache-maven
206
- uses : actions/cache@v4
206
+ uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
207
207
# if it's not a pull request, we restore and save the cache
208
208
if : github.event_name != 'pull_request'
209
209
with :
@@ -220,7 +220,7 @@ jobs:
220
220
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
221
221
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
222
222
- name : Restore Maven/Gradle Dependency/Dist Caches
223
- uses : actions/cache/restore@v4
223
+ uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
224
224
# if it's a pull request, we restore the cache, but we don't save it
225
225
if : github.event_name == 'pull_request'
226
226
with :
@@ -236,13 +236,13 @@ jobs:
236
236
237
237
- name : Set up latest JDK ${{ matrix.java.name }} from jdk.java.net
238
238
if : matrix.java.from == 'jdk.java.net'
239
- uses : oracle-actions/setup-java@v1
239
+ uses : oracle-actions/setup-java@2e744f723b003fdd759727d0ff654c8717024845 # v1.4.0
240
240
with :
241
241
website : jdk.java.net
242
242
release : ${{ matrix.java.java_version_numeric }}
243
243
- name : Set up latest JDK ${{ matrix.java.name }} from Adoptium
244
244
if : matrix.java.from == '' || matrix.java.from == 'adoptium.net'
245
- uses : actions/setup-java@v2.2 .0
245
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
246
246
with :
247
247
distribution : ' temurin'
248
248
java-version : ${{ matrix.java.java_version_numeric }}
@@ -252,7 +252,7 @@ jobs:
252
252
run : echo "::set-output name=path::${JAVA_HOME}"
253
253
# Always use JDK 11 to build the main code: that's what we use for releases.
254
254
- name : Set up JDK 11
255
- uses : actions/setup-java@v2.2 .0
255
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7 .0
256
256
with :
257
257
distribution : ' temurin'
258
258
java-version : 11
@@ -271,7 +271,7 @@ jobs:
271
271
-Porg.gradle.java.installations.paths=${{ steps.mainjdk-exportpath.outputs.path }},${{ steps.testjdk-exportpath.outputs.path }} \
272
272
${{ matrix.java.jvm_args && '-Ptest.jdk.launcher.args=' }}${{ matrix.java.jvm_args }}
273
273
- name : Upload reports (if build failed)
274
- uses : actions/upload-artifact@v4
274
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
275
275
if : failure()
276
276
with :
277
277
name : reports-java${{ matrix.java.name }}
0 commit comments