Skip to content

Commit fcfd478

Browse files
8Keepriccardobl
andauthored
Update GitHub Actions and enable Dependabot (#2686)
* Update GitHub Actions and enable Dependabot * downgrade some actions * add cooldown to dependabot --------- Co-authored-by: Riccardo Balbo <os@rblb.it>
1 parent 994c552 commit fcfd478

5 files changed

Lines changed: 54 additions & 40 deletions

File tree

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@ updates:
99
directory: "/" # Location of package manifests
1010
schedule:
1111
interval: "weekly"
12+
cooldown:
13+
default-days: 30
14+
- package-ecosystem: "github-actions"
15+
directory: "/"
16+
schedule:
17+
interval: "weekly"
18+
cooldown:
19+
default-days: 30
20+
open-pull-requests-limit: 5
21+
commit-message:
22+
prefix: "ci"
23+
labels:
24+
- "dependencies"
25+
- "github-actions"

.github/workflows/bounty.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: startsWith(github.event.label.name, 'diff:')
1515
steps:
1616
- name: Comment bounty info
17-
uses: actions/github-script@v7
17+
uses: actions/github-script@v8.0.0
1818
env:
1919
FORUM_URL: "https://hub.jmonkeyengine.org/t/bounty-program-trial-starts-today/49394/"
2020
RESERVE_HOURS: "48"

.github/workflows/format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
if: ${{ false }}
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v6.0.2
1212
with:
1313
fetch-depth: 0
1414
- name: Prettify code
15-
uses: creyD/prettier_action@v4.3
15+
uses: creyD/prettier_action@v4.6
1616
with:
1717
prettier_options: --tab-width 4 --print-width 110 --write **/**/*.java
1818
prettier_version: "2.8.8"

.github/workflows/main.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
permissions:
6666
contents: read
6767
steps:
68-
- uses: actions/checkout@v4
68+
- uses: actions/checkout@v6.0.2
6969
- name: Start xvfb
7070
run: |
7171
Xvfb :99 -ac -screen 0 1024x768x16 &
@@ -81,12 +81,12 @@ jobs:
8181
echo "MESA_LOADER_DRIVER_OVERRIDE=$MESA_LOADER_DRIVER_OVERRIDE"
8282
echo "GALLIUM_DRIVER=$GALLIUM_DRIVER"
8383
- name: Validate the Gradle wrapper
84-
uses: gradle/actions/wrapper-validation@v4
84+
uses: gradle/actions/wrapper-validation@v5.0.2
8585
- name: Test with Gradle Wrapper
8686
run: |
8787
./gradlew :jme3-screenshot-test:screenshotTest
8888
- name: Upload Test Reports
89-
uses: actions/upload-artifact@master
89+
uses: actions/upload-artifact@v6.0.0
9090
if: always()
9191
with:
9292
name: screenshot-test-report
@@ -106,31 +106,31 @@ jobs:
106106
run: echo $JAVA_HOME --- $JAVA_HOME_8_X64 --- $JAVA_HOME_11_X64 --- $JAVA_HOME_17_X64 --- $JAVA_HOME_21_X64 ---
107107

108108
- name: Setup the java environment
109-
uses: actions/setup-java@v4
109+
uses: actions/setup-java@v5.2.0
110110
with:
111111
distribution: 'temurin'
112112
java-version: '11.0.26+4'
113113

114114
- name: Setup the XCode version to 15.1.0
115-
uses: maxim-lobanov/setup-xcode@v1
115+
uses: maxim-lobanov/setup-xcode@v1.6.0
116116
with:
117117
xcode-version: '15.1.0'
118118

119119
- name: Clone the repo
120-
uses: actions/checkout@v4
120+
uses: actions/checkout@v6.0.2
121121
with:
122122
fetch-depth: 1
123123

124124
- name: Validate the Gradle wrapper
125-
uses: gradle/actions/wrapper-validation@v4
125+
uses: gradle/actions/wrapper-validation@v5.0.2
126126

127127
- name: Build
128128
run: |
129129
./gradlew -PuseCommitHashAsVersionName=true --no-daemon -PbuildNativeProjects=true \
130130
:jme3-ios-native:build
131131
132132
- name: Upload natives
133-
uses: actions/upload-artifact@master
133+
uses: actions/upload-artifact@v6.0.0
134134
with:
135135
name: ios-natives
136136
path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework
@@ -144,12 +144,12 @@ jobs:
144144

145145
steps:
146146
- name: Clone the repo
147-
uses: actions/checkout@v4
147+
uses: actions/checkout@v6.0.2
148148
with:
149149
fetch-depth: 1
150150

151151
- name: Setup Java 11
152-
uses: actions/setup-java@v4
152+
uses: actions/setup-java@v5.2.0
153153
with:
154154
distribution: temurin
155155
java-version: '11'
@@ -164,7 +164,7 @@ jobs:
164164
cmake --version
165165
166166
- name: Validate the Gradle wrapper
167-
uses: gradle/actions/wrapper-validation@v4
167+
uses: gradle/actions/wrapper-validation@v5.0.2
168168

169169
- name: Build
170170
run: |
@@ -173,7 +173,7 @@ jobs:
173173
:jme3-android-native:assemble
174174
175175
- name: Upload natives
176-
uses: actions/upload-artifact@master
176+
uses: actions/upload-artifact@v6.0.0
177177
with:
178178
name: android-natives
179179
path: build/native
@@ -205,30 +205,30 @@ jobs:
205205

206206
steps:
207207
- name: Clone the repo
208-
uses: actions/checkout@v4
208+
uses: actions/checkout@v6.0.2
209209
with:
210210
fetch-depth: 1
211211

212212
- name: Setup the java environment
213-
uses: actions/setup-java@v4
213+
uses: actions/setup-java@v5.2.0
214214
with:
215215
distribution: 'temurin'
216216
java-version: ${{ matrix.jdk }}
217217

218218
- name: Download natives for android
219-
uses: actions/download-artifact@master
219+
uses: actions/download-artifact@v8.0.1
220220
with:
221221
name: android-natives
222222
path: build/native
223223

224224
- name: Download natives for iOS
225-
uses: actions/download-artifact@master
225+
uses: actions/download-artifact@v8.0.1
226226
with:
227227
name: ios-natives
228228
path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework
229229

230230
- name: Validate the Gradle wrapper
231-
uses: gradle/actions/wrapper-validation@v4
231+
uses: gradle/actions/wrapper-validation@v5.0.2
232232
- name: Build Engine
233233
shell: bash
234234
run: |
@@ -275,30 +275,30 @@ jobs:
275275
# Used later by DeploySnapshot
276276
- name: Upload merged natives
277277
if: matrix.deploy==true
278-
uses: actions/upload-artifact@master
278+
uses: actions/upload-artifact@v6.0.0
279279
with:
280280
name: natives
281281
path: dist/jme3-natives.zip
282282

283283
# Upload maven artifacts to be used later by the deploy job
284284
- name: Upload maven artifacts
285285
if: matrix.deploy==true
286-
uses: actions/upload-artifact@master
286+
uses: actions/upload-artifact@v6.0.0
287287
with:
288288
name: maven
289289
path: dist/maven
290290

291291
- name: Upload javadoc
292292
if: matrix.deploy==true
293-
uses: actions/upload-artifact@master
293+
uses: actions/upload-artifact@v6.0.0
294294
with:
295295
name: javadoc
296296
path: dist/javadoc
297297

298298
# Upload release archive to be used later by the deploy job
299299
- name: Upload release
300300
if: github.event_name == 'release' && matrix.deploy==true
301-
uses: actions/upload-artifact@master
301+
uses: actions/upload-artifact@v6.0.0
302302
with:
303303
name: release
304304
path: dist/release
@@ -324,7 +324,7 @@ jobs:
324324
fi
325325
326326
- name: Download merged natives
327-
uses: actions/download-artifact@master
327+
uses: actions/download-artifact@v8.0.1
328328
with:
329329
name: natives
330330
path: dist/
@@ -402,25 +402,25 @@ jobs:
402402

403403
# We need to clone everything again for uploadToMaven.sh ...
404404
- name: Clone the repo
405-
uses: actions/checkout@v4
405+
uses: actions/checkout@v6.0.2
406406
with:
407407
fetch-depth: 1
408408

409409
# Setup jdk 21 used for building Maven-style artifacts
410410
- name: Setup the java environment
411-
uses: actions/setup-java@v4
411+
uses: actions/setup-java@v5.2.0
412412
with:
413413
distribution: 'temurin'
414414
java-version: '21'
415415

416416
- name: Download natives for android
417-
uses: actions/download-artifact@master
417+
uses: actions/download-artifact@v8.0.1
418418
with:
419419
name: android-natives
420420
path: build/native
421421

422422
- name: Download natives for iOS
423-
uses: actions/download-artifact@master
423+
uses: actions/download-artifact@v8.0.1
424424
with:
425425
name: ios-natives
426426
path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework
@@ -452,38 +452,38 @@ jobs:
452452

453453
# We need to clone everything again for uploadToCentral.sh ...
454454
- name: Clone the repo
455-
uses: actions/checkout@v4
455+
uses: actions/checkout@v6.0.2
456456
with:
457457
fetch-depth: 1
458458

459459
# Setup jdk 21 used for building Sonatype artifacts
460460
- name: Setup the java environment
461-
uses: actions/setup-java@v4
461+
uses: actions/setup-java@v5.2.0
462462
with:
463463
distribution: 'temurin'
464464
java-version: '21'
465465

466466
# Download all the stuff...
467467
- name: Download maven artifacts
468-
uses: actions/download-artifact@master
468+
uses: actions/download-artifact@v8.0.1
469469
with:
470470
name: maven
471471
path: dist/maven
472472

473473
- name: Download release
474-
uses: actions/download-artifact@master
474+
uses: actions/download-artifact@v8.0.1
475475
with:
476476
name: release
477477
path: dist/release
478478

479479
- name: Download natives for android
480-
uses: actions/download-artifact@master
480+
uses: actions/download-artifact@v8.0.1
481481
with:
482482
name: android-natives
483483
path: build/native
484484

485485
- name: Download natives for iOS
486-
uses: actions/download-artifact@master
486+
uses: actions/download-artifact@v8.0.1
487487
with:
488488
name: ios-natives
489489
path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework
@@ -557,7 +557,7 @@ jobs:
557557
558558
# Download the javadoc in the new directory "newdoc"
559559
- name: Download javadoc
560-
uses: actions/download-artifact@master
560+
uses: actions/download-artifact@v8.0.1
561561
with:
562562
name: javadoc
563563
path: newdoc

.github/workflows/screenshot-test-comment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: sleep 120
2525

2626
- name: Wait for Screenshot Tests to complete
27-
uses: lewagon/wait-on-check-action@v1.3.1
27+
uses: lewagon/wait-on-check-action@v1.4.1
2828
with:
2929
ref: ${{ github.event.pull_request.head.sha }}
3030
check-name: 'Run Screenshot Tests'
@@ -33,7 +33,7 @@ jobs:
3333
allowed-conclusions: success,skipped,failure
3434
- name: Check Screenshot Tests status
3535
id: check-status
36-
uses: actions/github-script@v6
36+
uses: actions/github-script@v8.0.0
3737
with:
3838
github-token: ${{ secrets.GITHUB_TOKEN }}
3939
script: |
@@ -80,7 +80,7 @@ jobs:
8080
core.setOutput('failed', 'false');
8181
}
8282
- name: Find Existing Comment
83-
uses: peter-evans/find-comment@v3
83+
uses: peter-evans/find-comment@v4.0.0
8484
id: existingCommentId
8585
with:
8686
issue-number: ${{ github.event.pull_request.number }}
@@ -89,7 +89,7 @@ jobs:
8989

9090
- name: Comment on PR if tests fail
9191
if: steps.check-status.outputs.failed == 'true'
92-
uses: peter-evans/create-or-update-comment@v4
92+
uses: peter-evans/create-or-update-comment@v5.0.0
9393
with:
9494
issue-number: ${{ github.event.pull_request.number }}
9595
body: |

0 commit comments

Comments
 (0)