fix(frontend): change url to point to renamed endpoint #541 #4360
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: 'SonarQube Analysis' | |
| on: | |
| push: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality-gate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up JDK ${{ vars.JAVA_VERSION }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ vars.JAVA_VERSION }} | |
| distribution: 'temurin' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| package_json_file: frontend/package.json | |
| cache: true | |
| cache_dependency_path: frontend/pnpm-lock.yaml | |
| - name: Set up node ${{ vars.NODE_VERSION }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ vars.NODE_VERSION }} | |
| - name: Install frontend dependencies | |
| run: cd frontend && pnpm install --frozen-lockfile | |
| - name: Generate frontend test coverage | |
| run: cd frontend && pnpm run test --coverage | |
| - name: Build and analyze | |
| run: mvn clean verify sonar:sonar | |
| -Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
| -Dsonar.host.url=${{ vars.SONAR_HOST_URL }} | |
| - name: SonarQube Quality Gate check | |
| id: sonarqube-quality-gate-check | |
| uses: SonarSource/sonarqube-quality-gate-action@v1.2.0 | |
| with: | |
| scanMetadataReportFile: target/sonar/report-task.txt | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} |