X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Fci.yml;h=48887ca7c14a2f280023ab15f19df9453e512f2f;hb=62340a29089d0753f45b57dc3e5b8d4871c7d736;hp=ae0678b95724175004942f322f00646ec85045ac;hpb=95616e4a28e5d95d9e61d02e3e0f3c4121ca2894;p=e-mobility-charging-stations-simulator.git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae0678b9..48887ca7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: branches: [main] pull_request: types: [opened, synchronize, reopened] + merge_group: + branches: [main] jobs: build: runs-on: ${{ matrix.os }} @@ -28,10 +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'" + if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'" run: npm run coverage - name: SonarCloud Scan - if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'" + if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'" uses: sonarsource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any @@ -62,16 +64,16 @@ 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'" + # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'" # run: npm run coverage - - name: SonarCloud Scan - if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'" - uses: sonarsource/sonarcloud-github-action@master - with: - projectBaseDir: ui/web - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + # - 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@master + # 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: