Remove analyzing code step in test job

Because we have enabled Automatic Analysis

Signed-off-by: John Niang <johnniang@foxmail.com>
pull/5282/head
John Niang 2024-01-30 16:37:51 +08:00
parent c792cef52f
commit b4bf425a09
1 changed files with 1 additions and 6 deletions

View File

@ -33,12 +33,7 @@ jobs:
run: ./gradlew check
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- name: Analyze code
if: ${{ github.event_name == 'push' && env.SONAR_TOKEN != '' }} # Due to inability to access secrets during PR, only the code pushed into the branch can be analyzed.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonar --info
build:
runs-on: ubuntu-latest
if: always() && (needs.test.result == 'skipped' || needs.test.result == 'success')