7 types: [opened, synchronize, reopened]
10 runs-on: ${{ matrix.os }}
13 os: [windows-latest, macos-latest, ubuntu-latest]
14 node: ['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 }}
28 run: npm run build --if-present
31 - name: npm run coverage
32 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
34 - name: SonarCloud Scan
35 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
36 uses: sonarsource/sonarcloud-github-action@master
38 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
39 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
41 runs-on: ${{ matrix.os }}
44 working-directory: src/ui/web
47 os: [windows-latest, macos-latest, ubuntu-latest]
48 node: ['16.x', '18.x']
50 - uses: actions/checkout@v3
52 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
53 - name: Use Node.js ${{ matrix.node }}
54 uses: actions/setup-node@v3
56 node-version: ${{ matrix.node }}
62 run: npm run build --if-present
65 # - name: npm run coverage
66 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
67 # run: npm run coverage
68 # - name: SonarCloud Scan
69 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
70 # uses: sonarsource/sonarcloud-github-action@master
72 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
73 # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
75 runs-on: ubuntu-latest
77 - uses: actions/checkout@v3
78 - name: Set up Docker Buildx
80 uses: docker/setup-buildx-action@v2
81 - name: Build docker image
84 make SUBMODULES_INIT=false