diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index e4aeaf05f9..45ec3c5760 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -30,14 +30,16 @@ jobs: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - name: Remove monitoring-engine JAR - run: rm -rf ~/.m2/repository/io/metersphere/monitoring-engine - name: Cache Maven packages uses: actions/cache@v3 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 + + - name: Remove monitoring-engine JAR + run: rm -rf ~/.m2/repository/io/metersphere/monitoring-engine + - name: Build and analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any