Skip to content

Commit

Permalink
Add java directory
Browse files Browse the repository at this point in the history
  • Loading branch information
javiertuya committed Mar 10, 2024
1 parent c19327b commit 06e6e94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ inputs:
required: false
default: "https://sonarcloud.io"
working-directory:
description: 'The name of the working directory from which the scan is executed'
description: 'The name of the working directory from which the scan is executed (where `sonar-project.properties` is located)'
required: false
default: "."
java-directory:
description: 'The name of the directory (relative to `working-directory`) where the java project is compiled (where `pom.xml` is located)'
required: false
default: "."
java-version:
Expand Down Expand Up @@ -87,7 +91,7 @@ runs:
#Compile and restore reports
- name: Generate classes
shell: bash
working-directory: ${{ inputs.working-directory }}
working-directory: ${{ inputs.working-directory }}/${{ inputs.java-directory }}
run: mvn test-compile -U --no-transfer-progress
env:
GITHUB_TOKEN: ${{ inputs.github-token }} # needed if using github packages
Expand Down

0 comments on commit 06e6e94

Please sign in to comment.