-
-
Notifications
You must be signed in to change notification settings - Fork 70
56 lines (46 loc) · 1.36 KB
/
codeql-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Code Scanning"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
env:
JDK_DISTRIBUTION: zulu
JDK_VERSION_OLDEST: 17
JDK_VERSION_LATEST: 23
JDK_VERSION_LATEST_LTS: 21
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
- name: Set up JDKs
uses: actions/setup-java@v4
with:
distribution: ${{ env.JDK_DISTRIBUTION }}
java-version: |
${{ env.JDK_VERSION_OLDEST }}
${{ env.JDK_VERSION_LATEST }}
${{ env.JDK_VERSION_LATEST_LTS }}
- name: Set up Gradle
uses: gradle/[email protected]
- name: Build
run: >
./gradlew
-Porg.gradle.java.installations.fromEnv=JAVA_HOME_${{ env.JDK_VERSION_OLDEST }}_X64,JAVA_HOME_${{ env.JDK_VERSION_LATEST }}_X64
assemble check -x :doma-processor:check
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: CodeQL-Build
path: |
./**/build/reports
/home/runner/work/doma/doma/.gradle
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3