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 uses: actions/dependency-review-action@v3
23 - uses: pnpm/action-setup@v2
26 - name: Setup node ${{ matrix.node }}
27 uses: actions/setup-node@v3
29 node-version: ${{ matrix.node }}
32 run: pnpm install --ignore-scripts
34 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
41 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
43 - name: SonarCloud Scan
44 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
45 uses: sonarsource/sonarcloud-github-action@v2.0.1
47 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
52 os: [windows-latest, macos-latest, ubuntu-latest]
53 node: ['16.x', '18.x', '20.x']
54 name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }}
55 runs-on: ${{ matrix.os }}
58 working-directory: ui/web
60 - uses: actions/checkout@v4
62 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
63 - name: 'Dependency Review'
64 uses: actions/dependency-review-action@v3
65 - uses: pnpm/action-setup@v2
68 - name: Setup node ${{ matrix.node }}
69 uses: actions/setup-node@v3
71 node-version: ${{ matrix.node }}
74 run: pnpm install --ignore-scripts
76 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
83 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
85 - name: SonarCloud Scan
86 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
87 uses: sonarsource/sonarcloud-github-action@v2.0.1
89 projectBaseDir: ui/web
91 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
94 runs-on: ubuntu-latest
95 name: Build docker image
97 - uses: actions/checkout@v4
98 - name: Setup Docker Buildx
100 uses: docker/setup-buildx-action@v2
101 - name: Build docker image
104 make SUBMODULES_INIT=false