6 types: [opened, synchronize, reopened]
13 os: [windows-latest, macos-latest, ubuntu-latest]
14 node: ['16.x', '18.x', '20.x']
15 name: Build simulator with Node ${{ matrix.node }} on ${{ matrix.os }}
16 runs-on: ${{ matrix.os }}
18 - uses: actions/checkout@v4
20 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
21 - uses: pnpm/action-setup@v2
24 - name: Setup node ${{ matrix.node }}
25 uses: actions/setup-node@v3
27 node-version: ${{ matrix.node }}
30 run: pnpm install --ignore-scripts
32 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
39 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
41 - name: SonarCloud Scan
42 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
43 uses: sonarsource/sonarcloud-github-action@v2.0.1
45 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
50 os: [windows-latest, macos-latest, ubuntu-latest]
51 node: ['16.x', '18.x', '20.x']
52 name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }}
53 runs-on: ${{ matrix.os }}
56 working-directory: ui/web
58 - uses: actions/checkout@v4
60 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
61 - uses: pnpm/action-setup@v2
64 - name: Setup node ${{ matrix.node }}
65 uses: actions/setup-node@v3
67 node-version: ${{ matrix.node }}
70 run: pnpm install --ignore-scripts
72 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
79 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
81 - name: SonarCloud Scan
82 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
83 uses: sonarsource/sonarcloud-github-action@v2.0.1
85 projectBaseDir: ui/web
87 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
90 runs-on: ubuntu-latest
91 name: Build docker image
93 - uses: actions/checkout@v4
94 - name: Setup Docker Buildx
96 uses: docker/setup-buildx-action@v2
97 - name: Build docker image
100 make SUBMODULES_INIT=false