diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 3092792..b049447 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -13,11 +13,11 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 8 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: - java-version: 8 - distribution: 'corretto' # Use Java 8 for builds. + java-version: 17 + distribution: 'corretto' # Use Java 17 for sonar. - name: Cache SonarCloud packages uses: actions/cache@v3 with: @@ -30,17 +30,13 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'corretto' # Use Java 17 for sonar. - name: Build and analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=pnavais_state-machine - #- name: Push coveralls report - # uses: coverallsapp/github-action@1.1.3 - # with: - # github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Publish coverage to Coveralls + run: | + mvn org.eluder.coveralls:coveralls-maven-plugin:report + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}