Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Added SonarQube
Browse files Browse the repository at this point in the history
Added SonarQube
  • Loading branch information
IvanJosipovic authored Oct 24, 2019
2 parents 1f13cc3 + 8308d43 commit a759780
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,34 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: 2.2.402
- name: SonarQube Install
run: dotnet tool install dotnet-sonarscanner --tool-path ./
- name: SonarQube Start
run: ./dotnet-sonarscanner begin /o:ivanjosipovic /k:IvanJosipovic_BlazorTable /d:sonar.host.url=https://sonarcloud.io /d:sonar.login=$SONARQUBE_TOKEN
env:
SONARQUBE_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: 3.1.100-preview1-014459
- name: Dotnet Build
run: dotnet build --configuration Release
- name: Dotnet Publish
working-directory: src/BlazorTable.Sample
run: dotnet publish --configuration Release
run: dotnet publish --configuration Release
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: 2.2.402
- name: SonarQube End
run: ./dotnet-sonarscanner end /d:sonar.login=$SONARQUBE_TOKEN
env:
SONARQUBE_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to Test
id: netlify
uses: ivanjosipovic/actions/cli@master
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/BlazorTable.svg?style=flat-square)](https://www.nuget.org/packages/BlazorTable)
[![Nuget (with prereleases)](https://img.shields.io/nuget/dt/BlazorTable.svg?style=flat-square)](https://www.nuget.org/packages/BlazorTable)
![](https://github.com/IvanJosipovic/BlazorTable/workflows/CI/CD/badge.svg)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=IvanJosipovic_BlazorTable&metric=alert_status)](https://sonarcloud.io/dashboard?id=IvanJosipovic_BlazorTable)

**Work in progress!**

Expand Down
4 changes: 2 additions & 2 deletions src/BlazorTable.Sample/wwwroot/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
Expand Down

0 comments on commit a759780

Please sign in to comment.