Skip to content

Commit d5f7470

Browse files
committed
feat: upgrade CI script
1 parent a0ea843 commit d5f7470

File tree

1 file changed

+19
-50
lines changed

1 file changed

+19
-50
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
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-
41
name: Build
52

63
on:
@@ -13,59 +10,31 @@ jobs:
1310
build:
1411
runs-on: ubuntu-latest
1512
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
1916
with:
20-
java-version: '18'
17+
java-version: '23'
2118
distribution: 'temurin'
2219
cache: gradle
20+
- name: Setup Gradle
21+
uses: gradle/actions/setup-gradle@v4
2322
- name: Grant execute permission for gradlew
2423
run: chmod +x gradlew
2524
- name: Build with Gradle
2625
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
5226

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
6729

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

Comments
 (0)