X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=547c24ec49c787f76ff0224c4f0d3745e47c6eaf;hb=bcc9c3c094c6293638aaaa690bb673193546680b;hp=af014eb55b5b1783fb60efef18b4dcf5773eef42;hpb=9d237a6efc0b8d0bd8d8546fb746e2beb6b7e94d;p=e-mobility-charging-stations-simulator.git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af014eb5..547c24ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -29,9 +30,10 @@ jobs: - name: npm test run: npm test - name: npm run coverage + if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'" 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 +44,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