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 }}
64 corepack prepare pnpm@latest --activate
68 - name: pnpm run build
72 # - name: pnpm run coverage
73 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
74 # run: pnpm run coverage
75 # - name: SonarCloud Scan
76 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
77 # uses: sonarsource/sonarcloud-github-action@master
79 # projectBaseDir: ui/web
81 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
82 # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
84 runs-on: ubuntu-latest
86 - uses: actions/checkout@v3
87 - name: Setup Docker Buildx
89 uses: docker/setup-buildx-action@v2
90 - name: Build docker image
93 make SUBMODULES_INIT=false