Skip to content

Commit 5895446

Browse files
committed
chore: Adjust CodeQL build
1 parent f8d9676 commit 5895446

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/analysis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,17 @@ jobs:
5757
# Prefix the list here with "+" to use these queries and those in the config file.
5858
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5959

60-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
61-
# If this step fails, then you should remove it and run the build manually (see below)
62-
- name: Autobuild
63-
uses: github/codeql-action/autobuild@v3
60+
- if: matrix.language == 'java'
61+
name: Set up java 17
62+
uses: actions/setup-java@v3
63+
with:
64+
distribution: 'temurin'
65+
java-version: 17
66+
architecture: x64
67+
68+
- if: matrix.language == 'java'
69+
name: Build with Maven
70+
run: ./mvnw clean install -U
6471

6572
# ℹ️ Command-line programs to run using the OS shell.
6673
# 📚 https://git.io/JvXDl

0 commit comments

Comments
 (0)