README.md: use the project name
[e-mobility-charging-stations-simulator.git] / .github / workflows / ci.yml
index af014eb55b5b1783fb60efef18b4dcf5773eef42..e49d7381ba9a49c148419d52a9bca7db1a6fb0ce 100644 (file)
@@ -2,14 +2,15 @@ name: CI
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
     types: [opened, synchronize, reopened]
 jobs:
   build:
-    runs-on: ubuntu-latest
+    runs-on: ${{ matrix.os }}
     strategy:
       matrix:
+        os: [windows-latest, macos-latest, ubuntu-latest]
         node: ['14.x', '16.x', '18.x']
     steps:
       - uses: actions/checkout@v3
@@ -31,7 +32,7 @@ jobs:
       - name: npm run coverage
         run: npm run coverage
       - name: SonarCloud Scan
-        if: "github.repository == 'jerome-benoit/charging-stations-simulator' && matrix.node == '16.x'"
+        if: "github.repository == 'sap/e-mobility-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
@@ -42,7 +43,7 @@ jobs:
       - uses: actions/checkout@v3
       - name: Set up Docker Buildx
         id: buildx
-        uses: docker/setup-buildx-action@v1
+        uses: docker/setup-buildx-action@v2
       - name: Build docker image
         run: |
           cd docker