Skip to content

Commit

Permalink
Troubleshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Apr 10, 2024
1 parent a0bc33b commit ea9aa6c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ runs:
# Triggers and conditions
# if [ "${{ inputs.java-cache }}" == "maven" ]; then
sonarCmd="mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar" >> $GITHUB_OUTPUT
sonar_cmd="mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar" >> $GITHUB_OUTPUT
# elif [ "${{ inputs.java-cache }}" == "gradle" ]; then
# sonarCmd="./gradlew build sonarqube --info" >> $GITHUB_OUTPUT
# sonar_cmd="./gradlew build sonarqube --info" >> $GITHUB_OUTPUT
# else
# echo "ERROR: inputs.java-cache = ${{ inputs.java-cache }}"
# exit 1
Expand Down Expand Up @@ -137,14 +137,14 @@ runs:
java-version: ${{ inputs.java-version }}
server-id: 'github'

# Run tests, hopefully generating coverage for SonarCloud
- name: Run Tests
if: steps.vars.outputs.triggered == 'true'
shell: bash
run: |
# Run tests
cd ${{ inputs.dir }}
${{ inputs.commands }}
# # Run tests, hopefully generating coverage for SonarCloud
# - name: Run Tests
# if: steps.vars.outputs.triggered == 'true'
# shell: bash
# run: |
# # Run tests
# cd ${{ inputs.dir }}
# ${{ inputs.commands }}

### Optional SonarCloud

Expand All @@ -155,7 +155,7 @@ runs:
run: |
# Run SonarCloud for ${{ inputs.java-cache }}
cd ${{ inputs.dir }}
${{ steps.vars.outputs.sonarCmd }} \
${{ steps.vars.outputs.sonar_cmd }} \
-Dsonar.host.url=https://sonarcloud.io ${{ inputs.sonar_args }}
### Cleanup
Expand Down

0 comments on commit ea9aa6c

Please sign in to comment.