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

Commit

Permalink
cleanup build
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasCir committed Dec 10, 2020
1 parent 9be5eeb commit 48c86d1
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: "CodeQL Security Scanner"

env:
java: 11

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

- name: Test with Java 11
- name: Set up JDK ${{ env.java }}
uses: actions/setup-java@v1
with:
java-version: 1.11
java-version: ${{ env.java }}

- name: Cache Maven packages
# FIXME(@JonasCir) #3733 remove '**/*.pom' once serverlib pom is renamed
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-java-${{ env.java }}-m2-${{ hashFiles('**/pom.xml', '**/*.pom') }}
restore-keys: ${{ runner.os }}-java-${{ env.java }}-m2

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

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

0 comments on commit 48c86d1

Please sign in to comment.