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 }}
27 continue-on-error: true
29 if: "matrix.os != 'windows-latest' && matrix.node != '16.x'"
32 if: "matrix.os != 'windows-latest' && matrix.node != '16.x'"
34 - name: npm run coverage
35 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
37 - name: SonarCloud Scan
38 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
39 uses: sonarsource/sonarcloud-github-action@master
41 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
42 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
44 runs-on: ${{ matrix.os }}
47 working-directory: src/ui/web
50 os: [windows-latest, macos-latest, ubuntu-latest]
51 node: ['16.x', '18.x']
53 - uses: actions/checkout@v3
55 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
56 - name: Use Node.js ${{ matrix.node }}
57 uses: actions/setup-node@v3
59 node-version: ${{ matrix.node }}
64 continue-on-error: true
69 # - name: npm run coverage
70 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
71 # run: npm run coverage
72 # - name: SonarCloud Scan
73 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
74 # uses: sonarsource/sonarcloud-github-action@master
76 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
77 # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
79 runs-on: ubuntu-latest
81 - uses: actions/checkout@v3
82 - name: Set up Docker Buildx
84 uses: docker/setup-buildx-action@v2
85 - name: Build docker image
88 make SUBMODULES_INIT=false