Skip to content

Commit 25ec04f

Browse files
authored
fix: fix sonarcloud action (#158)
* fix: fix sonarcloud action * fix: quality gate widget
1 parent 4b1abf4 commit 25ec04f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/sonarcloud.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
restore-keys: |
2828
${{ runner.os }}-build-${{ env.cache-name }}-
2929
${{ runner.os }}-build-
30-
${{ runner.os }}-
31-
32-
30+
${{ runner.os }}-
3331
3432
# Run tests with coverage
35-
- name: run tests
33+
- name: Use Node.js 18.x
3634
uses: actions/setup-node@v3
3735
with:
3836
node-version: 18.x
37+
38+
- name: run tests with coverage
3939
run: |
4040
npm ci
4141
npm run test -- --coverage . --watchAll=false
@@ -45,4 +45,4 @@ jobs:
4545
uses: SonarSource/sonarcloud-github-action@master
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
48-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
48+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=devbcn.github.io&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=devbcn.github.io)
2+
13
![](src/assets/images/1500x500.jpeg)
24

3-
# Barcelona Developers Conference - DevBcn
5+
# Barcelona Developers Conference - DevBcn
46

57
## Getting Started with Create React App
68

0 commit comments

Comments
 (0)