build(ci): use monorepo setup on sonarcloud
[e-mobility-charging-stations-simulator.git] / .github / workflows / ci.yml
index be732e11497fc9df6a81a01e1c4076337c0c53f2..d7e43f3c4b572feb98bf55b114ce2642806f0aa0 100644 (file)
@@ -71,17 +71,17 @@ jobs:
         run: pnpm build
       - name: pnpm test
         run: pnpm test
-      - name: pnpm coverage
-        if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
-        run: pnpm coverage
-      - name: SonarCloud Scan
-        if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
-        uses: sonarsource/sonarcloud-github-action@v1.9.1
-        with:
-          projectBaseDir: ui/web
-        env:
-          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
-          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+      - name: pnpm coverage
+        if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
+        run: pnpm coverage
+      - name: SonarCloud Scan
+        if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
+        uses: sonarsource/sonarcloud-github-action@v1.9.1
+        with:
+          projectBaseDir: ui/web
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
+          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
   build-docker:
     runs-on: ubuntu-latest
     steps: