chore(deps): update tj-actions/changed-files action to v45 #551
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify source code changes | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '17' ] | |
name: Verify source code changes on Java ${{ matrix.Java }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get changed source files or maven poms of all modules | |
id: changed-files-specific | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
pom.xml | |
.mvn/** | |
.github/workflows/verify.yml | |
plantuml-generator-util/pom.xml | |
plantuml-generator-util/src/main/** | |
plantuml-generator-util/src/test/** | |
plantuml-generator-maven-plugin/pom.xml | |
plantuml-generator-maven-plugin/src/main/** | |
plantuml-generator-maven-plugin/src/test/** | |
plantuml-generator-maven-plugin/src/it/** | |
- name: Set up JDK | |
if: steps.changed-files-specific.outputs.any_changed == 'true' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
- name: Analyze with SonarCloud | |
if: ${{steps.changed-files-specific.outputs.any_changed == 'true' && github.event_name != 'pull_request'}} | |
run: ./mvnw -B install verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.coverage.jacoco.xmlReportPaths=\${project.build.directory}/site/jacoco/jacoco.xml -Dsonar.projectKey=devlauer_plantuml-generator -Dsonar.login=$SONAR_TOKEN | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: Verify via Maven without SonarCloud | |
if: ${{steps.changed-files-specific.outputs.any_changed == 'true' && github.event_name == 'pull_request'}} | |
run: ./mvnw -B install verify | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |