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
Run sonar cloud with current node.js LTS version
[e-mobility-charging-stations-simulator.git]
/
.github
/
workflows
/
ci.yml
diff --git
a/.github/workflows/ci.yml
b/.github/workflows/ci.yml
index dce72d579ace69d5370e2c13ee06bdd5d667b58d..d09db850f037520cb1939926a8d8f20df467efc3 100644
(file)
--- a/
.github/workflows/ci.yml
+++ b/
.github/workflows/ci.yml
@@
-5,14
+5,12
@@
on:
- master
pull_request:
types: [opened, synchronize, reopened]
- master
pull_request:
types: [opened, synchronize, reopened]
- branches:
- - master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [14.x]
+ node-version: [14.x
, 16.x
]
steps:
- uses: actions/checkout@v2
with:
steps:
- uses: actions/checkout@v2
with:
@@
-23,18
+21,20
@@
jobs:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm ci
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm ci
- - name: npm run build
- run: npm run build
- name: npm run lint
run: npm run lint
- name: npm run lint
run: npm run lint
+ continue-on-error: true
+ - name: npm run build
+ run: npm run build
- name: npm test
run: npm test
- name: npm run coverage
run: npm run coverage
- name: SonarCloud Scan
- name: npm test
run: npm test
- name: npm run coverage
run: npm run coverage
- name: SonarCloud Scan
- uses: SonarSource/sonarcloud-github-action@master
+ if: "github.repository == 'jerome-benoit/charging-stations-simulator' && matrix.node-version == '16.x'"
+ uses: sonarsource/sonarcloud-github-action@master
env:
env:
- GITHUB_TOKEN: ${{ secrets.
USER
_TOKEN }} # Needed to get PR information, if any
+ GITHUB_TOKEN: ${{ secrets.
GITHUB
_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build-docker:
runs-on: ubuntu-latest
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
build-docker:
runs-on: ubuntu-latest