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 }}
24 - name: corepack enable
30 - name: pnpm run build
34 - name: pnpm run coverage
35 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
36 run: pnpm run coverage
37 - name: SonarCloud Scan
38 if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
39 uses: sonarsource/sonarcloud-github-action@master
41 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
42 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
44 runs-on: ${{ matrix.os }}
47 working-directory: ui/web
50 os: [windows-latest, macos-latest, ubuntu-latest]
51 node: ['16.x', '18.x', '19.x']
53 - uses: actions/checkout@v3
55 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
56 - name: Setup node ${{ matrix.node }}
57 uses: actions/setup-node@v3
59 node-version: ${{ matrix.node }}
60 - name: corepack enable
66 - name: pnpm run build
70 # - name: pnpm run coverage
71 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
72 # run: pnpm run coverage
73 # - name: SonarCloud Scan
74 # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x'"
75 # uses: sonarsource/sonarcloud-github-action@master
77 # projectBaseDir: ui/web
79 # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
80 # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
82 runs-on: ubuntu-latest
84 - uses: actions/checkout@v3
85 - name: Setup Docker Buildx
87 uses: docker/setup-buildx-action@v2
88 - name: Build docker image
91 make SUBMODULES_INIT=false