6 types: [opened, synchronize, reopened]
11 runs-on: ${{ matrix.os }}
14 os: [windows-latest, macos-latest, ubuntu-latest]
15 node: ['16.x', '18.x', '19.7,x']
17 - uses: actions/checkout@v3
19 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
20 - name: Setup node ${{ matrix.node }}
21 uses: actions/setup-node@v3
23 node-version: ${{ matrix.node }}
29 run: npm run build --if-present
32 - name: npm run coverage
33 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
35 - name: SonarCloud Scan
36 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.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: ${{ matrix.os }}
45 working-directory: ui/web
48 os: [windows-latest, macos-latest, ubuntu-latest]
49 node: ['16.x', '18.x', '19.7.x']
51 - uses: actions/checkout@v3
53 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
54 - name: Setup node ${{ matrix.node }}
55 uses: actions/setup-node@v3
57 node-version: ${{ matrix.node }}
63 run: npm run build --if-present
66 # - name: npm run coverage
67 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
68 # run: npm run coverage
69 # - name: SonarCloud Scan
70 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
71 # uses: sonarsource/sonarcloud-github-action@master
73 # projectBaseDir: ui/web
75 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
76 # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
78 runs-on: ubuntu-latest
80 - uses: actions/checkout@v3
81 - name: Setup Docker Buildx
83 uses: docker/setup-buildx-action@v2
84 - name: Build docker image
87 make SUBMODULES_INIT=false