File tree Expand file tree Collapse file tree 4 files changed +63
-13
lines changed Expand file tree Collapse file tree 4 files changed +63
-13
lines changed Original file line number Diff line number Diff line change 5
5
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6
6
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7
7
8
- name : Java CI with Gradle
8
+ name : Java CI Coverage with Gradle
9
9
10
10
on :
11
11
push :
@@ -21,24 +21,25 @@ jobs:
21
21
22
22
strategy :
23
23
matrix :
24
- os : [ubuntu-latest, macos-latest, windows-latest ]
24
+ os : [ubuntu-latest]
25
25
runs-on : ${{ matrix.os }}
26
26
27
27
steps :
28
28
- uses : actions/checkout@v4
29
- - name : Set up JDK 20
29
+ - name : Set up JDK
30
30
uses : actions/setup-java@v4
31
31
with :
32
- java-version : ' 20 '
32
+ java-version : ' 21 '
33
33
distribution : temurin
34
34
35
35
- name : Validate Gradle wrapper
36
- uses : gradle/wrapper-validation-action @v3
36
+ uses : gradle/actions/ wrapper-validation@v3
37
37
38
- - name : Setup and execute Gradle 'test' task
39
- uses : gradle/gradle-build-action@v3
40
- with :
41
- arguments : --console=verbose clean checkstyleMain checkstyleTest test
38
+ - name : Setup Gradle
39
+ uses : gradle/actions/setup-gradle@v3
40
+
41
+ - name : Runt tests
42
+ run : ./gradlew --console=verbose test
42
43
43
44
- name : Upload coverage reports to Codecov with GitHub Action
44
45
uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7
+
8
+ name : Java CI Tests with Gradle
9
+
10
+ on :
11
+ push :
12
+ branches : [ main, develop, feature/* ]
13
+ pull_request :
14
+ branches : [ main ]
15
+
16
+ permissions :
17
+ contents : read
18
+
19
+ jobs :
20
+ gradle :
21
+
22
+ strategy :
23
+ matrix :
24
+ os : [ubuntu-latest, macos-latest, windows-latest]
25
+ java : [ '20', '21', '22' ]
26
+ runs-on : ${{ matrix.os }}
27
+
28
+ steps :
29
+ - uses : actions/checkout@v4
30
+ - name : Set up JDK
31
+ uses : actions/setup-java@v4
32
+ with :
33
+ java-version : ${{ matrix.java }}
34
+ distribution : temurin
35
+
36
+ - name : Validate Gradle wrapper
37
+ uses : gradle/actions/wrapper-validation@v3
38
+
39
+ - name : Setup Gradle
40
+ uses : gradle/actions/setup-gradle@v3
41
+
42
+ - name : Clean
43
+ run : ./gradlew --console=verbose clean
44
+
45
+ - name : Lint
46
+ run : ./gradlew --console=verbose checkstyleMain checkstyleTest
47
+
48
+ - name : Runt tests
49
+ run : ./gradlew --console=verbose test
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
16
16
- uses : actions/checkout@v4
17
17
with :
18
18
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
19
- - name : Set up JDK 20
19
+ - name : Set up JDK
20
20
uses : actions/setup-java@v4
21
21
with :
22
- java-version : 20
22
+ java-version : 21
23
23
distribution : temurin # Alternative distribution options are available
24
24
- name : Cache SonarCloud packages
25
25
uses : actions/cache@v4
Original file line number Diff line number Diff line change 1
1
# ##############################################################################
2
- FROM gradle:8.4 .0-jdk20 -alpine AS development
2
+ FROM gradle:8.7 .0-jdk21 -alpine AS development
3
3
4
4
RUN apk add --update --no-cache make
5
5
6
6
WORKDIR /app
7
7
8
8
# ##############################################################################
9
- FROM node:20.2 .0-alpine3.16 AS lint
9
+ FROM node:22.1 .0-alpine3.19 AS lint
10
10
11
11
ENV WORKDIR=/app
12
12
WORKDIR ${WORKDIR}
You can’t perform that action at this time.
0 commit comments