name: Master Build on: push: branches: - master jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: # We do one OS only to reduce resource utilization. To do macOS to this would be needed: #os: [ubuntu-20.04, macOS-latest] os: [ubuntu-latest] java: [11] fail-fast: false max-parallel: 4 name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} steps: - uses: actions/checkout@v1 - name: Set up JDK uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} - name: Build, test (no integration) and Sonarqube analyse env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # The following builds the project, runs the tests with coverage (no integration tests) and then executes the SonarCloud analysis run: mvn verify -pl '!biojava-integrationtest' org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=biojava_biojava -Dsonar.organization=biojava