Skip to content

Merge branch '114-better-build-pipeline' of github.com:ronnypolley/ec… #1

Merge branch '114-better-build-pipeline' of github.com:ronnypolley/ec…

Merge branch '114-better-build-pipeline' of github.com:ronnypolley/ec… #1

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build Eclipse Ignore Helper
on:
push:
pull_request_target:
types: [labeled]
jobs:
build:
name: build and check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK (8 and 11)
uses: actions/setup-java@v3
with:
java-version: |
8
11
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B verify -ntp --file pom.xml
- name: Run PITest Maven
run: mvn -B -Ppit-test verify -ntp --file pom.xml
- name: Run Integration Tests
run: mvn -B -Prun-its verify -ntp --file pom.xml
- name: Publish Test Report
if: contains(github.event.pull_request.labels.*.name, 'save to build')
uses: scacap/action-surefire-report@v1
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Analyze with SonarCloud.io
if: contains(github.event.pull_request.labels.*.name, 'save to build')
env:
JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }}
run: mvn -ntp -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }}