Skip to content

Trigger notification #1258

Trigger notification

Trigger notification #1258

name: "Build"
on:
push:
branches-ignore:
- "*-jdk11"
- "*/*-jdk11"
tags-ignore:
- "*"
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Cache Maven repository"
uses: actions/[email protected]
with:
path: $HOME/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "JDK set-up"
uses: actions/setup-java@v4
with:
java-version: '15'
distribution: 'adopt'
- name: "Build"
run: |
mvn clean install -B -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -P compatibility-mode
test-and-quality-check:
name: "Test and quality check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Cache Maven repository"
uses: actions/[email protected]
with:
path: $HOME/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "Extract build information"
id: build_info
run: |
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
- name: "JDK set-up"
uses: actions/setup-java@v4
with:
java-version: '15'
distribution: 'adopt'
- name: "Test and Quality check"
uses: nick-invision/retry@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOURCE_BRANCH: ${{ steps.build_info.outputs.SOURCE_BRANCH }}
COVERALLS_IO_TOKEN: ${{ secrets.COVERALLS_IO_TOKEN }}
with:
max_attempts: 3
timeout_minutes: 10
retry_on: error
command: |
mvn verify jacoco:report-aggregate coveralls:report -D repoToken=$COVERALLS_IO_TOKEN -P compatibility-mode
security-check:
name: "Security check"
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: "Cache Maven repository"
uses: actions/[email protected]
with:
path: $HOME/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "JDK set-up"
uses: actions/setup-java@v4
with:
java-version: '15'
distribution: 'adopt'
- name: "Checkout repository"
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: "Initialize CodeQL"
uses: github/codeql-action/init@v3
with:
languages: 'java'
- run: |
mvn clean install -B -DskipTests -P fast
- name: "Perform Analysis"
uses: github/codeql-action/analyze@v3