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
Fixes to OCPP command payload validation:
[e-mobility-charging-stations-simulator.git]
/
.github
/
workflows
/
ci.yml
diff --git
a/.github/workflows/ci.yml
b/.github/workflows/ci.yml
index 84feb26f88132054dc05cf5edd40e2972a2ddd98..917c75866d01c94e663bbab3679d4bd16efacfe9 100644
(file)
--- a/
.github/workflows/ci.yml
+++ b/
.github/workflows/ci.yml
@@
-1,8
+1,7
@@
name: CI
on:
push:
name: CI
on:
push:
- branches:
- - main
+ branches: [main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
pull_request:
types: [opened, synchronize, reopened]
jobs:
@@
-11,12
+10,12
@@
jobs:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
- node: ['16.x', '18.x']
+ node: ['16.x', '18.x'
, '19.x'
]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- - name:
Use Node.js
${{ matrix.node }}
+ - name:
Setup node
${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
@@
-24,16
+23,15
@@
jobs:
run: npm ci
- name: npm run lint
run: npm run lint
run: npm ci
- name: npm run lint
run: npm run lint
- continue-on-error: true
- name: npm run build
- name: npm run build
- run: npm run build
+ run: npm run build
--if-present
- name: npm test
run: npm test
- name: npm run coverage
- name: npm test
run: npm test
- name: npm run coverage
- if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
6
.x'"
+ if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
8
.x'"
run: npm run coverage
- name: SonarCloud Scan
run: npm run coverage
- name: SonarCloud Scan
- if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
6
.x'"
+ if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
8
.x'"
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
@@
-42,16
+40,16
@@
jobs:
runs-on: ${{ matrix.os }}
defaults:
run:
runs-on: ${{ matrix.os }}
defaults:
run:
- working-directory:
src/
ui/web
+ working-directory: ui/web
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
- node: ['16.x', '18.x']
+ node: ['16.x', '18.x'
, '19.x'
]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- - name:
Use Node.js
${{ matrix.node }}
+ - name:
Setup node
${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
@@
-59,28
+57,26
@@
jobs:
run: npm ci
- name: npm run lint
run: npm run lint
run: npm ci
- name: npm run lint
run: npm run lint
- continue-on-error: true
- name: npm run build
- name: npm run build
- run: npm run build
+ run: npm run build
--if-present
- name: npm test
run: npm test
# - name: npm run coverage
- name: npm test
run: npm test
# - name: npm run coverage
- # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
6
.x'"
+ # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
8
.x'"
# run: npm run coverage
# - name: SonarCloud Scan
# run: npm run coverage
# - name: SonarCloud Scan
- # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
6
.x'"
+ # if: "github.repository == 'sap/e-mobility-charging-stations-simulator' && matrix.os == 'ubuntu-latest' && matrix.node == '1
8
.x'"
# uses: sonarsource/sonarcloud-github-action@master
# uses: sonarsource/sonarcloud-github-action@master
+ # with:
+ # projectBaseDir: ui/web
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build-docker:
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build-docker:
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [windows-latest, macos-latest, ubuntu-latest]
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3
- - name: Set
up Docker Buildx
+ - name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image