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 - name: 'Dependency Review'
22 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
23 uses: actions/dependency-review-action@v3
24 - uses: pnpm/action-setup@v2
27 - name: Setup node ${{ matrix.node }}
28 uses: actions/setup-node@v3
30 node-version: ${{ matrix.node }}
33 run: pnpm install --ignore-scripts
35 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
42 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
44 - name: SonarCloud Scan
45 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
46 uses: sonarsource/sonarcloud-github-action@v2.0.1
48 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
53 os: [windows-latest, macos-latest, ubuntu-latest]
54 node: ['16.x', '18.x', '20.x']
55 name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }}
56 runs-on: ${{ matrix.os }}
59 working-directory: ui/web
61 - uses: actions/checkout@v4
63 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
64 - name: 'Dependency Review'
65 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
66 uses: actions/dependency-review-action@v3
67 - uses: pnpm/action-setup@v2
70 - name: Setup node ${{ matrix.node }}
71 uses: actions/setup-node@v3
73 node-version: ${{ matrix.node }}
76 run: pnpm install --ignore-scripts
78 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
85 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
87 - name: SonarCloud Scan
88 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
89 uses: sonarsource/sonarcloud-github-action@v2.0.1
91 projectBaseDir: ui/web
93 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
96 runs-on: ubuntu-latest
97 name: Build docker image
99 - uses: actions/checkout@v4
100 - name: Setup Docker Buildx
102 uses: docker/setup-buildx-action@v2
103 - name: Build docker image
106 make SUBMODULES_INIT=false