Skip to content

Commit c35940e

Browse files
committed
working on java builds
1 parent 917e2a3 commit c35940e

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
matrix:
3333
include:
3434
- language: java
35-
build-mode: manual # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
35+
build-mode: autobuild # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
3636

3737
steps:
3838
- name: Checkout repository
@@ -46,30 +46,9 @@ jobs:
4646

4747
# Initializes the CodeQL tools for scanning.
4848

49-
- name: Checkout
50-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
51-
with:
52-
fetch-depth: 0 # Important for versioning extension to work correctly
53-
- name: Mustache Specs
54-
run: |
55-
git submodule update --init --recursive
56-
- name: Set up JDK 11
57-
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00
58-
with:
59-
java-version: 11
60-
distribution: "temurin"
61-
cache: maven
62-
- name: Install
63-
run: mvn clean install -DskipTests --batch-mode --no-transfer-progress
64-
env:
65-
BUILD_PORT: 0
66-
BUILD_SECURE_PORT: 0
67-
- name: Build
68-
run: mvn clean package --batch-mode --no-transfer-progress
69-
env:
70-
BUILD_PORT: 0
71-
BUILD_SECURE_PORT: 0
72-
49+
# Automatically attempts to build Java (Maven/Gradle)
50+
- name: Autobuild
51+
uses: github/codeql-action/autobuild@v3
7352

7453
- name: Initialize CodeQL
7554
uses: github/codeql-action/init@v3

0 commit comments

Comments
 (0)