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: ${{ matrix.os }}
45 working-directory: src/ui/web
48 os: [windows-latest, macos-latest, ubuntu-latest]
49 node: ['14.x', '16.x', '18.x']
51 - uses: actions/checkout@v3
53 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
54 - name: Use Node.js ${{ matrix.node }}
55 uses: actions/setup-node@v3
57 node-version: ${{ matrix.node }}
62 continue-on-error: true
67 # - name: npm run coverage
68 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
69 # run: npm run coverage
70 # - name: SonarCloud Scan
71 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '16.x'"
72 # uses: sonarsource/sonarcloud-github-action@master
74 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
75 # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
77 runs-on: ubuntu-latest
79 - uses: actions/checkout@v3
80 - name: Set up Docker Buildx
82 uses: docker/setup-buildx-action@v2
83 - name: Build docker image
86 make SUBMODULES_INIT=false