Remove continuous inspection profile and workflow

This commit is contained in:
Mahmoud Ben Hassine
2024-09-27 10:53:52 +02:00
parent 11ee2fe22a
commit 52e6ad848a
2 changed files with 0 additions and 59 deletions

View File

@@ -1,32 +0,0 @@
name: Continuous inspection build
on:
schedule:
- cron: '0 10 * * *' # Once per day at 10am UTC
workflow_dispatch:
jobs:
code-quality-analysis:
name: code quality analysis report
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Analyse test coverage with Jacoco
run: mvn -P test-coverage verify
- name: Analyse code quality with Sonar
if: github.repository == 'spring-projects/spring-batch'
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
run: mvn sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_TOKEN

27
pom.xml
View File

@@ -145,7 +145,6 @@
<maven-failsafe-plugin.version>3.5.0</maven-failsafe-plugin.version>
<maven-javadoc-plugin.version>3.10.0</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
<maven-deploy-plugin.version>3.1.3</maven-deploy-plugin.version>
<maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
@@ -305,32 +304,6 @@
</build>
<profiles>
<profile>
<id>test-coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>artifactory-staging</id>
<distributionManagement>