6 types: [opened, synchronize, reopened]
11 runs-on: ${{ matrix.os }}
14 os: [windows-latest, macos-latest, ubuntu-latest]
15 node: ['16.x', '18.x', '19.x']
17 - uses: actions/checkout@v3
19 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
20 - name: Setup node ${{ matrix.node }}
21 uses: actions/setup-node@v3
23 node-version: ${{ matrix.node }}
27 corepack prepare pnpm@latest --activate
31 - name: pnpm run build
35 - name: pnpm run coverage
36 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
37 run: pnpm run coverage
38 - name: SonarCloud Scan
39 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
40 uses: sonarsource/sonarcloud-github-action@master
42 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
43 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
45 runs-on: ${{ matrix.os }}
48 working-directory: ui/web
51 os: [windows-latest, macos-latest, ubuntu-latest]
52 node: ['16.x', '18.x', '19.x']
54 - uses: actions/checkout@v3
56 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
57 - name: Setup node ${{ matrix.node }}
58 uses: actions/setup-node@v3
60 node-version: ${{ matrix.node }}
61 - name: corepack enable
66 corepack prepare pnpm@latest --activate
70 - name: pnpm run build
74 # - name: pnpm run coverage
75 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
76 # run: pnpm run coverage
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@master
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