File tree Expand file tree Collapse file tree 2 files changed +57
-9
lines changed
Expand file tree Collapse file tree 2 files changed +57
-9
lines changed Original file line number Diff line number Diff line change 1- name : Java CI
2-
1+ name : Maven Build
32on :
43 push :
5- branches :
6- - main
7- pull_request :
8- branches :
9- - main
104
115jobs :
126 build :
137 runs-on : ubuntu-latest
8+
149 steps :
1510 - name : Checkout repository
1611 uses : actions/checkout@v4
2015 with :
2116 distribution : adopt
2217 java-version : 21
18+ cache : maven
2319
24- - name : Run tests
25- run : mvn test
20+ - name : Build
21+ run : mvn -B package --file pom.xml
Original file line number Diff line number Diff line change 1+ name : " CodeQL Advanced"
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+
7+ jobs :
8+ analyze :
9+ name : Analyze (${{ matrix.language }})
10+ runs-on : ' ubuntu-latest'
11+ permissions :
12+ # required for all workflows
13+ security-events : write
14+ # required to fetch internal or private CodeQL packs
15+ packages : read
16+ # only required for workflows in private repositories
17+ actions : read
18+ contents : read
19+
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ include :
24+ - language : actions
25+ build-mode : none
26+ - language : java-kotlin
27+ build-mode : none
28+ - language : javascript-typescript
29+ build-mode : none
30+
31+ steps :
32+ - name : Checkout repository
33+ uses : actions/checkout@v4
34+
35+ - name : Setup JDK 21
36+ uses : actions/setup-java@v4
37+ with :
38+ distribution : adopt
39+ java-version : 21
40+ cache : maven
41+
42+ # Initializes the CodeQL tools for scanning.
43+ - name : Initialize CodeQL
44+ uses : github/codeql-action/init@v3
45+ with :
46+ languages : ${{ matrix.language }}
47+ build-mode : ${{ matrix.build-mode }}
48+
49+ - name : Perform CodeQL Analysis
50+ uses : github/codeql-action/analyze@v3
51+ with :
52+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments