updating copyright #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build JDK 11" | |
on: | |
push: | |
branches: | |
- "*-jdk11" | |
- "*/*-jdk11" | |
tags-ignore: | |
- "*" | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Cache Maven repository" | |
uses: actions/[email protected] | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: "JDK 11 set-up" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
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@v3 | |
- name: "Cache Maven repository" | |
uses: actions/[email protected] | |
with: | |
path: ~/.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 11 set-up" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: "Test and Quality check" | |
uses: nick-invision/retry@v2 | |
with: | |
max_attempts: 3 | |
timeout_minutes: 5 | |
retry_on: error | |
command: | | |
mvn verify jacoco:report-aggregate coveralls:report -D repoToken=$COVERALLS_TOKEN sonar:sonar -D sonar.projectKey=BULL -D sonar.organization=$SONAR_ORGANIZATION -D sonar.host.url=https://sonarcloud.io -D sonar.login=$SONAR_TOKEN -D sonar.branch.name=$SOURCE_BRANCH -P compatibility-mode | |
env: | |
SONAR_ORGANIZATION: ${{ secrets.SONAR_ORGANIZATION }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SOURCE_BRANCH: ${{ steps.build_info.outputs.SOURCE_BRANCH }} | |
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
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: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: "JDK 11 set-up" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: "Checkout repository" | |
uses: actions/checkout@v3 | |
# Initializes the CodeQL tools for scanning. | |
- name: "Initialize CodeQL" | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: 'java' | |
- run: | | |
mvn clean install -B -DskipTests -P fast | |
- name: "Perform Analysis" | |
uses: github/codeql-action/analyze@v2 |