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: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
23 uses: actions/dependency-review-action@v3
25 base-ref: ${{ github.ref_name }}
26 head-ref: ${{ github.sha }}
27 - name: 'Pull Request Dependency Review'
28 if: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
29 uses: actions/dependency-review-action@v3
30 - uses: pnpm/action-setup@v2
33 - name: Setup node ${{ matrix.node }}
34 uses: actions/setup-node@v3
36 node-version: ${{ matrix.node }}
39 run: pnpm install --ignore-scripts
41 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
48 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
50 - name: SonarCloud Scan
51 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
52 uses: sonarsource/sonarcloud-github-action@v2.0.1
54 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
59 os: [windows-latest, macos-latest, ubuntu-latest]
60 node: ['16.x', '18.x', '20.x']
61 name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }}
62 runs-on: ${{ matrix.os }}
65 working-directory: ui/web
67 - uses: actions/checkout@v4
69 fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
70 - name: 'Dependency Review'
71 if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
72 uses: actions/dependency-review-action@v3
74 base-ref: ${{ github.ref_name }}
75 head-ref: ${{ github.sha }}
76 - name: 'Pull Request Dependency Review'
77 if: ${{ github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
78 uses: actions/dependency-review-action@v3
79 - uses: pnpm/action-setup@v2
82 - name: Setup node ${{ matrix.node }}
83 uses: actions/setup-node@v3
85 node-version: ${{ matrix.node }}
88 run: pnpm install --ignore-scripts
90 if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
97 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
99 - name: SonarCloud Scan
100 if: ${{ github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '18.x' }}
101 uses: sonarsource/sonarcloud-github-action@v2.0.1
103 projectBaseDir: ui/web
105 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
108 runs-on: ubuntu-latest
109 name: Build docker image
111 - uses: actions/checkout@v4
112 - name: Setup Docker Buildx
114 uses: docker/setup-buildx-action@v2
115 - name: Build docker image
118 make SUBMODULES_INIT=false