1
- # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3
-
4
1
name : Build
5
2
6
3
on :
@@ -13,59 +10,31 @@ jobs:
13
10
build :
14
11
runs-on : ubuntu-latest
15
12
steps :
16
- - uses : actions/checkout@v2
17
- - name : Set up JDK 18
18
- uses : actions/setup-java@v2
13
+ - uses : actions/checkout@v4
14
+ - name : Set up JDK 23
15
+ uses : actions/setup-java@v4
19
16
with :
20
- java-version : ' 18 '
17
+ java-version : ' 23 '
21
18
distribution : ' temurin'
22
19
cache : gradle
20
+ - name : Setup Gradle
21
+ uses : gradle/actions/setup-gradle@v4
23
22
- name : Grant execute permission for gradlew
24
23
run : chmod +x gradlew
25
24
- name : Build with Gradle
26
25
run : ./gradlew build
27
- - name : Upload code coverage results
28
- uses : codecov/codecov-action@v2
29
-
30
- codeql-scan :
31
- name : CodeQL Security Scan
32
- runs-on : ubuntu-latest
33
- steps :
34
- - name : Checkout repository
35
- uses : actions/checkout@v2
36
- - name : Initialize CodeQL
37
- uses : github/codeql-action/init@v1
38
- with :
39
- languages : java
40
- - name : Set up JDK 18
41
- uses : actions/setup-java@v2
42
- with :
43
- java-version : ' 18'
44
- distribution : ' temurin'
45
- cache : gradle
46
- - name : Grant execute permission for gradlew
47
- run : chmod +x gradlew
48
- - name : Build with Gradle
49
- run : ./gradlew build
50
- - name : Perform CodeQL Analysis
51
- uses : github/codeql-action/analyze@v1
52
26
53
- codacy :
54
- name : Codacy Analysis CLI
55
- runs-on : ubuntu-latest
56
- steps :
57
- - name : Checkout code
58
- uses : actions/checkout@main
59
-
60
- - name : Run Codacy Analysis CLI
61
- uses : codacy/codacy-analysis-cli-action@master
62
- with :
63
- output : results.sarif
64
- format : sarif
65
- gh-code-scanning-compat : true
66
- max-allowed-issues : 2147483647
27
+ - name : Upload code coverage results
28
+ uses : codecov/codecov-action@v4
67
29
68
- - name : Upload SARIF results file
69
- uses : github/codeql-action/upload-sarif@main
70
- with :
71
- sarif_file : results.sarif
30
+ - name : Run Codacy Analysis CLI
31
+ uses : codacy/codacy-analysis-cli-action@v4
32
+ with :
33
+ output : results.sarif
34
+ format : sarif
35
+ gh-code-scanning-compat : true
36
+ max-allowed-issues : 2147483647
37
+ - name : Upload SARIF results file
38
+ uses : github/codeql-action/upload-sarif@main
39
+ with :
40
+ sarif_file : results.sarif
0 commit comments