6 types: [opened, synchronize, reopened]
9 runs-on: ${{ matrix.os }}
12 os: [windows-latest, macos-latest, ubuntu-latest]
13 node: ['16.x', '18.x', '19.x']
15 - uses: actions/checkout@v3
17 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18 - name: Setup node ${{ matrix.node }}
19 uses: actions/setup-node@v3
21 node-version: ${{ matrix.node }}
27 run: npm run build --if-present
30 - name: npm run coverage
31 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
33 - name: SonarCloud Scan
34 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
35 uses: sonarsource/sonarcloud-github-action@master
37 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
38 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
40 runs-on: ${{ matrix.os }}
43 working-directory: src/ui/web
46 os: [windows-latest, macos-latest, ubuntu-latest]
47 node: ['16.x', '18.x', '19.x']
49 - uses: actions/checkout@v3
51 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
52 - name: Setup node ${{ matrix.node }}
53 uses: actions/setup-node@v3
55 node-version: ${{ matrix.node }}
61 run: npm run build --if-present
64 # - name: npm run coverage
65 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
66 # run: npm run coverage
67 # - name: SonarCloud Scan
68 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
69 # uses: sonarsource/sonarcloud-github-action@master
71 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
72 # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
74 runs-on: ubuntu-latest
76 - uses: actions/checkout@v3
77 - name: Setup Docker Buildx
79 uses: docker/setup-buildx-action@v2
80 - name: Build docker image
83 make SUBMODULES_INIT=false