Skip to content

chore(deps): bump actions/upload-pages-artifact from 4 to 5 #238

chore(deps): bump actions/upload-pages-artifact from 4 to 5

chore(deps): bump actions/upload-pages-artifact from 4 to 5 #238

Workflow file for this run

name: SonarCloud
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
sonarcloud:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Build and analyze (PR)
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: >-
./mvnw --no-transfer-progress
org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report sonar:sonar
-Dsonar.projectKey=maveniverse_domtrip
-Dsonar.organization=maveniverse
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.base=${{ github.base_ref }}
-Dsonar.coverage.exclusions=website/src/main/java/**
- name: Build and analyze (push)
if: github.event_name == 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: >-
./mvnw --no-transfer-progress
org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report sonar:sonar
-Dsonar.projectKey=maveniverse_domtrip
-Dsonar.organization=maveniverse
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.branch.name=main
-Dsonar.coverage.exclusions=website/src/main/java/**