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 }}
31 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
38 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
40 - name: SonarCloud Scan
41 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
42 uses: sonarsource/sonarcloud-github-action@v2.0.0
44 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
45 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
47 runs-on: ${{ matrix.os }}
50 working-directory: ui/web
53 os: [windows-latest, macos-latest, ubuntu-latest]
54 node: ['16.x', '18.x', '20.x']
56 - uses: actions/checkout@v3
58 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
59 - uses: pnpm/action-setup@v2
62 - name: Setup node ${{ matrix.node }}
63 uses: actions/setup-node@v3
65 node-version: ${{ matrix.node }}
70 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
77 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
79 - name: SonarCloud Scan
80 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
81 uses: sonarsource/sonarcloud-github-action@v2.0.0
83 projectBaseDir: ui/web
85 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
86 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
88 runs-on: ubuntu-latest
90 - uses: actions/checkout@v3
91 - name: Setup Docker Buildx
93 uses: docker/setup-buildx-action@v2
94 - name: Build docker image
97 make SUBMODULES_INIT=false