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
26 - uses: pnpm/action-setup@v2
29 - name: Setup node ${{ matrix.node }}
30 uses: actions/setup-node@v3
32 node-version: ${{ matrix.node }}
35 run: pnpm install --ignore-scripts
37 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
44 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
46 - name: SonarCloud Scan
47 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
48 uses: sonarsource/sonarcloud-github-action@v2.0.1
50 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
55 os: [windows-latest, macos-latest, ubuntu-latest]
56 node: ['16.x', '18.x', '20.x']
57 name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }}
58 runs-on: ${{ matrix.os }}
61 working-directory: ui/web
63 - uses: actions/checkout@v4
65 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
66 - name: 'Dependency Review'
67 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
68 uses: actions/dependency-review-action@v3
71 - uses: pnpm/action-setup@v2
74 - name: Setup node ${{ matrix.node }}
75 uses: actions/setup-node@v3
77 node-version: ${{ matrix.node }}
80 run: pnpm install --ignore-scripts
82 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
89 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
91 - name: SonarCloud Scan
92 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
93 uses: sonarsource/sonarcloud-github-action@v2.0.1
95 projectBaseDir: ui/web
97 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
100 runs-on: ubuntu-latest
101 name: Build docker image
103 - uses: actions/checkout@v4
104 - name: Setup Docker Buildx
106 uses: docker/setup-buildx-action@v2
107 - name: Build docker image
110 make SUBMODULES_INIT=false