Skip to content

Merge pull request #3442 from imeszaros/bump-guice #3577

Merge pull request #3442 from imeszaros/bump-guice

Merge pull request #3442 from imeszaros/bump-guice #3577

Workflow file for this run

name: Full Build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java_version: [1.8, 11, 17, 18]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
- name: Install
run: mvn clean install -DskipTests -q -pl '!docs' -s ./etc/central-settings.xml
env:
BUILD_PORT: 0
BUILD_SECURE_PORT: 0
- name: Build
run: mvn clean checkstyle:checkstyle package -pl '!docs' -P checkstyle -s ./etc/central-settings.xml
env:
BUILD_PORT: 0
BUILD_SECURE_PORT: 0
sonar:
name: Sonar
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
BUILD_PORT: 0
BUILD_SECURE_PORT: 0
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar