Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-a committed Oct 10, 2020
2 parents 66727f8 + 4a05745 commit b9b94eb
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/sonarcloud-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "SonarCloud"

on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

- name: Cache Tools
uses: actions/cache@v2
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}

- name: Build project
uses: cake-build/cake-action@v1
with:
script-path: recipe.cake
verbosity: Diagnostic
cake-version: 0.38.5
cake-bootstrap: true

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion docs/input/index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if(!document.location.href.endsWith("/")){
<h3 class="no-anchor">Open-Source</h3>
<p>
Quartz.LightCore is free to use, improve, contribute and distribute.
Source code is available on <a href="https://github.com/cake-contrib/Quartz.LightCore">GitHub</a> under MIT license.
Source code is available on <a href="https://github.com/nils-org/Quartz.LightCore">GitHub</a> under MIT license.
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion recipe.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#load nuget:?package=Cake.Recipe&version=2.0.0
#load nuget:?package=Cake.Recipe&version=2.0.1

Environment.SetVariableNames();

Expand Down
12 changes: 12 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sonar.projectKey=nils-org_Quartz.LightCore
sonar.organization=nils-org

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=Quartz.LightCore
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
sonar.sources=src/

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
4 changes: 4 additions & 0 deletions src/Quartz.LightCore/Quartz.LightCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<TargetFramework>net461</TargetFramework>
<PackageId>Quartz.LightCore</PackageId>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down Expand Up @@ -39,5 +42,6 @@
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>

0 comments on commit b9b94eb

Please sign in to comment.