Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 48c86d1

Browse files
committed
cleanup build
1 parent 9be5eeb commit 48c86d1

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/codeql.yml

+16-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: "CodeQL Security Scanner"
13+
14+
env:
15+
java: 11
1316

1417
on:
1518
push:
@@ -47,15 +50,22 @@ jobs:
4750
# Prefix the list here with "+" to use these queries and those in the config file.
4851
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4952

50-
- name: Test with Java 11
53+
- name: Set up JDK ${{ env.java }}
5154
uses: actions/setup-java@v1
5255
with:
53-
java-version: 1.11
56+
java-version: ${{ env.java }}
57+
58+
- name: Cache Maven packages
59+
# FIXME(@JonasCir) #3733 remove '**/*.pom' once serverlib pom is renamed
60+
uses: actions/cache@v2
61+
with:
62+
path: ~/.m2
63+
key: ${{ runner.os }}-java-${{ env.java }}-m2-${{ hashFiles('**/pom.xml', '**/*.pom') }}
64+
restore-keys: ${{ runner.os }}-java-${{ env.java }}-m2
5465

5566
- name: Build with Maven
56-
run: |
57-
cd sormas-base
58-
mvn install -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipTests
67+
working-directory: ./sormas-base
68+
run: mvn verify -B -ntp -DSkipTests
5969

6070
- name: Perform CodeQL Analysis
6171
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)