7 types: [opened, synchronize, reopened]
10 runs-on: ${{ matrix.os }}
13 os: [windows-latest, macos-latest, ubuntu-latest]
14 node: ['14.x', '16.x', '18.x']
16 - uses: actions/checkout@v3
18 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
19 - name: Use Node.js ${{ matrix.node }}
20 uses: actions/setup-node@v3
22 node-version: ${{ matrix.node }}
27 continue-on-error: true
32 - name: npm run coverage
33 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
35 - name: SonarCloud Scan
36 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
37 uses: sonarsource/sonarcloud-github-action@master
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
40 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
42 runs-on: ubuntu-latest
44 - uses: actions/checkout@v3
45 - name: Set up Docker Buildx
47 uses: docker/setup-buildx-action@v2
48 - name: Build docker image
51 make SUBMODULES_INIT=false