Run sonarcloud CI job only on GNU/Linux
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 May 2022 20:04:31 +0000 (22:04 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 31 May 2022 20:04:31 +0000 (22:04 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.github/workflows/ci.yml

index 04c3d40f32160d61dbdeabcf057902586e518968..09513c93aed1463f7ea1269f658e271bde15c2d9 100644 (file)
@@ -32,7 +32,7 @@ jobs:
       - name: npm run coverage
         run: npm run coverage
       - name: SonarCloud Scan
-        if: "github.repository == 'sap/emobility-charging-stations-simulator' && matrix.node == '16.x'"
+        if: "github.repository == 'sap/emobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
         uses: sonarsource/sonarcloud-github-action@master
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
@@ -41,8 +41,6 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
-      - name: Set up QEMU
-        uses: docker/setup-qemu-action@v2
       - name: Set up Docker Buildx
         id: buildx
         uses: docker/setup-buildx-action@v2