repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fix off-by-one in ATG statuses handling
[e-mobility-charging-stations-simulator.git]
/
.github
/
workflows
/
ci.yml
diff --git
a/.github/workflows/ci.yml
b/.github/workflows/ci.yml
index e88393ece8b4143a5afd6435f3341391b3385db3..2e3a29104aeb5511843842ca01ead77955df9b44 100644
(file)
--- a/
.github/workflows/ci.yml
+++ b/
.github/workflows/ci.yml
@@
-26,7
+26,7
@@
jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
- node: ['20.x']
+ node: ['20.x'
, '21.x'
]
name: Build simulator with Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
name: Build simulator with Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
@@
-46,12
+46,15
@@
jobs:
with:
version: 8
- name: Setup node ${{ matrix.node }}
with:
version: 8
- name: Setup node ${{ matrix.node }}
- uses: actions/setup-node@v
3
+ uses: actions/setup-node@v
4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: pnpm install
run: pnpm install --ignore-scripts --frozen-lockfile
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: pnpm install
run: pnpm install --ignore-scripts --frozen-lockfile
+ - name: pnpm audit
+ if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
+ run: pnpm audit --prod
- name: pnpm lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm lint
- name: pnpm lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm lint
@@
-64,7
+67,7
@@
jobs:
run: pnpm coverage
- name: SonarCloud Scan
if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm coverage
- name: SonarCloud Scan
if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
- uses: sonarsource/sonarcloud-github-action@v2.
0.2
+ uses: sonarsource/sonarcloud-github-action@v2.
1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@
-73,7
+76,7
@@
jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
- node: ['18.x', '20.x']
+ node: ['18.x', '20.x'
, '21.x'
]
name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
name: Build dashboard with Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
defaults:
@@
-96,12
+99,15
@@
jobs:
with:
version: 8
- name: Setup node ${{ matrix.node }}
with:
version: 8
- name: Setup node ${{ matrix.node }}
- uses: actions/setup-node@v
3
+ uses: actions/setup-node@v
4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: pnpm install
run: pnpm install --ignore-scripts --frozen-lockfile
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: pnpm install
run: pnpm install --ignore-scripts --frozen-lockfile
+ - name: pnpm audit
+ if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
+ run: pnpm audit --prod
- name: pnpm lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm lint
- name: pnpm lint
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm lint
@@
-114,7
+120,7
@@
jobs:
run: pnpm coverage
- name: SonarCloud Scan
if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
run: pnpm coverage
- name: SonarCloud Scan
if: ${{ needs.check-secrets.outputs.sonar-token-exists == 'true' && github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }}
- uses: sonarsource/sonarcloud-github-action@v2.
0.2
+ uses: sonarsource/sonarcloud-github-action@v2.
1.1
with:
projectBaseDir: ui/web
env:
with:
projectBaseDir: ui/web
env: