Simplify Maven setup by removing unused settings configuration and improving readability of SonarCloud scan step.
This commit is contained in:
@@ -27,17 +27,3 @@ runs:
|
|||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
|
|
||||||
- name: Set up Maven with GitHub Packages
|
|
||||||
run: |
|
|
||||||
echo "<settings>
|
|
||||||
<servers>
|
|
||||||
<server>
|
|
||||||
<id>github-cloudflaredns</id>
|
|
||||||
<username>th-schwarz</username>
|
|
||||||
<password>${{ secrets.GITHUB_TOKEN }}</password>
|
|
||||||
</server>
|
|
||||||
</servers>
|
|
||||||
</settings>" > ~/.m2/settings.xml
|
|
||||||
shell:
|
|
||||||
bash
|
|
||||||
@@ -21,7 +21,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
|
|
||||||
|
|
||||||
- name: Setup Java and Maven
|
- name: Setup Java and Maven
|
||||||
uses: ./.github/actions/setup-java-maven
|
uses: ./.github/actions/setup-java-maven
|
||||||
|
|
||||||
@@ -30,7 +29,9 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||||
run: mvn -B -DtestClasspath=src/test/ verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=th-schwarz_CloudflareDNS-java
|
run:
|
||||||
|
- echo "Running SonarCloud analysis..."
|
||||||
|
- mvn -B -DtestClasspath=src/test/ verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=th-schwarz_CloudflareDNS-java
|
||||||
|
|
||||||
- name: Publish Test Report
|
- name: Publish Test Report
|
||||||
uses: ./.github/actions/publish-report/
|
uses: ./.github/actions/publish-report/
|
||||||
|
|||||||
Reference in New Issue
Block a user