-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (57 loc) · 1.49 KB
/
lint.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
57
name: Linting & Analysis
on:
workflow_dispatch: { }
workflow_call:
inputs:
check-dependencies:
description: 'Set to true to also check for dependencies'
default: false
required: false
type: boolean
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: Check
run: mvn -B -T1C -DskipTests verify
analyze:
name: CodeQL
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
queries: +security-and-quality
- name: Build
run: mvn -B -T1C -DskipTests -DskipChecks install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
dependency-review:
if: inputs.check-dependencies
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4