Skip to content

Commit 175e23f

Browse files
author
Gérard Collin
committed
Github actions upgrade
1 parent b1bc987 commit 175e23f

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

.github/workflows/dev-build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,21 @@ jobs:
1313
steps:
1414
- name: Create mongo Docker container
1515
id: build_mongo_docker
16-
uses: DigiPie/mongo-action@v1.0.1
16+
uses: DigiPie/mongo-action@v2.0.1
1717
with:
1818
image_version: latest
1919
port: 27017
20-
- uses: actions/checkout@v2
21-
- name: Set up JDK 16
22-
uses: actions/setup-java@v2
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
ref: Development
24+
- name: Set up JDK 21
25+
uses: actions/setup-java@v4
2326
with:
2427
distribution: 'adopt'
25-
java-version: '16'
28+
java-version: '21'
2629
- name: Cache Maven repository
27-
uses: actions/cache@v2
30+
uses: actions/cache@v4
2831
with:
2932
path: .m2/repository # maven repository files are stored here
3033
key: ${{ runner.OS }}-maven-${{ hashFiles('pom.xml') }}

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212
steps:
1313
- name: Create mongo Docker container
1414
id: build_mongo_docker
15-
uses: DigiPie/mongo-action@v1.0.1
15+
uses: DigiPie/mongo-action@v2.0.1
1616
with:
1717
image_version: latest
1818
port: 27017
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222
ref: main
2323

24-
- name: Set up JDK 16
25-
uses: actions/setup-java@v2
24+
- name: Set up JDK 21
25+
uses: actions/setup-java@v4
2626
with:
2727
distribution: 'adopt'
28-
java-version: '16'
28+
java-version: '21'
2929
- name: Cache Maven repository
30-
uses: actions/cache@v2
30+
uses: actions/cache@v4
3131
with:
3232
path: .m2/repository # maven repository files are stored here
3333
key: ${{ runner.OS }}-maven-${{ hashFiles('pom.xml') }}
@@ -38,7 +38,7 @@ jobs:
3838
git merge origin/Development
3939
- name: Build
4040
run: mvn -B package --file pom.xml
41-
- uses: actions/upload-artifact@v2
41+
- uses: actions/upload-artifact@v4
4242
# Test run screenshots only on failure
4343
if: success()
4444
with:

0 commit comments

Comments
 (0)