6 types: [opened, synchronize, reopened]
11 runs-on: ${{ matrix.os }}
14 os: [windows-latest, macos-latest, ubuntu-latest]
15 node: ['16.x', '18.x', '20.x']
17 - uses: actions/checkout@v3
19 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
20 - uses: pnpm/action-setup@v2
23 - name: Setup node ${{ matrix.node }}
24 uses: actions/setup-node@v3
26 node-version: ${{ matrix.node }}
37 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
39 - name: SonarCloud Scan
40 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
41 uses: sonarsource/sonarcloud-github-action@v1.9.1
43 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
44 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46 runs-on: ${{ matrix.os }}
49 working-directory: ui/web
52 os: [windows-latest, macos-latest, ubuntu-latest]
53 node: ['16.x', '18.x', '20.x']
55 - uses: actions/checkout@v3
57 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
58 - uses: pnpm/action-setup@v2
61 - name: Setup node ${{ matrix.node }}
62 uses: actions/setup-node@v3
64 node-version: ${{ matrix.node }}
75 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
77 - name: SonarCloud Scan
78 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
79 uses: sonarsource/sonarcloud-github-action@v1.9.1
81 projectBaseDir: ui/web
83 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
84 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
86 runs-on: ubuntu-latest
88 - uses: actions/checkout@v3
89 - name: Setup Docker Buildx
91 uses: docker/setup-buildx-action@v2
92 - name: Build docker image
95 make SUBMODULES_INIT=false