Skip to content

Commit

Permalink
Merge pull request #139 from litetex/dev
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
litetex authored Jul 14, 2024
2 parents 585a291 + 404f252 commit 99f9dbe
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 58 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/buildNuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Build Nuget
on:
workflow_dispatch:
push:
branches: [ develop ]
branches: [ dev ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
branches: [ dev ]
paths-ignore:
- '**.md'

Expand All @@ -23,7 +23,7 @@ jobs:
id: versionprovider
shell: bash
run: |
echo "version=$(date -u +%Y.%m.%d.%k%M)" >> $GITHUB_OUTPUT
echo "version=$(date -u +%Y.%m.%d.%-H%M)" >> $GITHUB_OUTPUT
build_each:
runs-on: ubuntu-latest
Expand All @@ -40,13 +40,13 @@ jobs:
- "CoreFramework.CrashLogging"
- "CoreFramework.Logging"
dotnet-version:
- 6.x
- 8.x

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}

Expand All @@ -61,7 +61,7 @@ jobs:
run: files=( *.nupkg) && echo "filename=${files[0]}" >> $GITHUB_OUTPUT

- name: Upload nupkg - Upload asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.dotnet-version }}-${{ steps.nupkgvar.outputs.filename }}
path: src/${{ matrix.project }}/bin/Release/${{ steps.nupkgvar.outputs.filename }}
Expand All @@ -72,7 +72,7 @@ jobs:
run: files=( *.snupkg) && echo "filename=${files[0]}" >> $GITHUB_OUTPUT

- name: Upload snupkg - Upload asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.dotnet-version }}-${{ steps.snupkgvar.outputs.filename }}
path: src/${{ matrix.project }}/bin/Release/${{ steps.snupkgvar.outputs.filename }}
12 changes: 8 additions & 4 deletions .github/workflows/checkBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,32 @@ name: Check Build
on:
workflow_dispatch:
push:
branches: [ develop ]
branches: [ dev ]
paths-ignore:
- '**.md'
pull_request:
branches: [ develop ]
branches: [ dev ]
paths-ignore:
- '**.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
dotnet-version:
- 6.x
- 8.x

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
dotnet-version: 8.x

- name: Build
run: dotnet build --configuration Release
Expand Down Expand Up @@ -107,9 +107,9 @@ jobs:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
dotnet-version: 8.x

- name: Pack
working-directory: src/${{ matrix.project }}
Expand All @@ -122,7 +122,7 @@ jobs:
run: files=( *.nupkg) && echo "filename=${files[0]}" >> $GITHUB_OUTPUT

- name: Upload nupkg - Upload asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.nupkgvar.outputs.filename }}
path: src/${{ matrix.project }}/bin/Release/${{ steps.nupkgvar.outputs.filename }}
Expand All @@ -133,7 +133,7 @@ jobs:
run: files=( *.snupkg) && echo "filename=${files[0]}" >> $GITHUB_OUTPUT

- name: Upload snupkg - Upload asset
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.snupkgvar.outputs.filename }}
path: src/${{ matrix.project }}/bin/Release/${{ steps.snupkgvar.outputs.filename }}
Expand Down
36 changes: 19 additions & 17 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,68 @@ name: Sonar CI
on:
workflow_dispatch:
push:
branches: [ master, develop ]
branches: [ master, dev ]
paths-ignore:
- '**.md'
pull_request:
types: [opened, synchronize, reopened]
paths-ignore:
- '**.md'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
sonar:
name: SonarCloud Scan
runs-on: windows-latest
# Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
runs-on: ubuntu-latest
# Automated Dependency PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
if: ${{ github.event_name != 'pull_request' || !(startsWith(github.head_ref, 'renovate/') || startsWith(github.head_ref, 'dependabot/')) }}
steps:
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21.x

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
dotnet-version: 8.x

- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Cache SonarCloud packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~\sonar\cache
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .\src\.sonar\scanner
path: ./src/.sonar/scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner

- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
working-directory: src
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
mkdir -p .sonar/scanner
dotnet tool update dotnet-sonarscanner --tool-path .sonar/scanner
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
working-directory: src
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"litetex_CoreFrameworkBase" /o:"litetex" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build --configuration Release
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
.sonar/scanner/dotnet-sonarscanner begin /k:"litetex_CoreFrameworkBase" /o:"litetex" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build --configuration Release
.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# CoreFramework <img src="CFR-128.png" width="48" /> [![Latest Version](https://img.shields.io/github/v/release/litetex/CoreFramework?style=flat-square)](https://github.com/litetex/CoreFramework/releases)
> **Current state**: _Maintenance mode_
> **Current state**: _Deprecated / Maintenance mode_
Stuff that is frequently used in (my) code and therefore here summarized

Expand Down Expand Up @@ -120,7 +120,7 @@ Stuff that is frequently used in (my) code and therefore here summarized
## Development [![Latest Version](https://img.shields.io/github/v/release/litetex/CoreFramework?style=flat-square&include_prereleases&label=prerelease)](https://github.com/litetex/CoreFramework/releases)
| Workflow | Status |
| --- | --- |
| Sonar Build | [![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=litetex_CoreFrameworkBase&metric=alert_status)](https://sonarcloud.io/dashboard?id=litetex_CoreFrameworkBase) <br>[![Latest workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/sonar.yml?branch=develop)](https://github.com/litetex/CoreFramework/actions/workflows/sonar.yml?query=branch%3Adevelop) |
| Check Build | [![Latest workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/checkBuild.yml?branch=develop)](https://github.com/litetex/CoreFramework/actions/workflows/checkBuild.yml?branch%3Adevelop) |
| Build Nuget | [![Latest workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/buildNuget.yml?branch=develop)](https://github.com/litetex/CoreFramework/actions/workflows/buildNuget.yml?branch%3Adevelop) |
| Sonar Build | [![Sonarcloud Status](https://sonarcloud.io/api/project_badges/measure?project=litetex_CoreFrameworkBase&metric=alert_status)](https://sonarcloud.io/dashboard?id=litetex_CoreFrameworkBase) <br>[![Latest workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/sonar.yml?branch=dev)](https://github.com/litetex/CoreFramework/actions/workflows/sonar.yml?query=branch%3Adev) |
| Check Build | [![Latest workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/checkBuild.yml?branch=dev)](https://github.com/litetex/CoreFramework/actions/workflows/checkBuild.yml?branch%3Adev) |
| Build Nuget | [![Latest workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/buildNuget.yml?branch=dev)](https://github.com/litetex/CoreFramework/actions/workflows/buildNuget.yml?branch%3Adev) |
| Release | [![master workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/release.yml?branch=master&label=master)](https://github.com/litetex/CoreFramework/actions/workflows/release.yml?query=branch%3Amaster) <br>[![master workflow runs](https://img.shields.io/github/actions/workflow/status/litetex/CoreFramework/release.yml?branch=master-release-test&label=release-test)](https://github.com/litetex/CoreFramework/actions/workflows/release.yml?query=branch%3Amaster-release-test) |
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.416",
"version": "8.0.100",
"rollForward": "latestMinor"
}
}
8 changes: 6 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"rebaseWhen": "behind-base-branch",
"ignorePaths": [
"global.json"
],
"packageRules": [
{
"description": "Stick with .NET LTS",
"datasources": [
"dotnet-version"
],
"allowedVersions": "<7"
"allowedVersions": "<9"
},
{
"description": "Stick with .NET LTS",
"matchPackagePatterns": [
"^Microsoft.SourceLink.GitHub",
"^dotnet"
],
"datasources": [
"nuget"
],
"allowedVersions": "<7"
"allowedVersions": "<9"
}
]
}
4 changes: 2 additions & 2 deletions src/CoreFramework.Base/CoreFramework.Base.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>

<PackageId>Litetex.CoreFramework.Base</PackageId>
<Description>Things that are frequently used in code - Base Module</Description>
Expand All @@ -26,7 +26,7 @@

<ItemGroup>
<!-- SourceLink -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>

<PackageId>Litetex.CoreFramework.Config.Json</PackageId>
<Description>Things that are frequently used in code - JSON Configuration Module</Description>
Expand All @@ -25,7 +25,7 @@

<ItemGroup>
<!-- SourceLink -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>

<PackageId>Litetex.CoreFramework.Config.Yaml</PackageId>
<Description>Things that are frequently used in code - YAML Configuration Module</Description>
Expand All @@ -25,11 +25,11 @@

<!-- SourceLink -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="YamlDotNet" Version="13.7.1" />
<PackageReference Include="YamlDotNet" Version="15.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/CoreFramework.Config/CoreFramework.Config.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>

<PackageId>Litetex.CoreFramework.Config</PackageId>
<Description>Things that are frequently used in code - Configuration Module</Description>
Expand All @@ -25,7 +25,7 @@

<ItemGroup>
<!-- SourceLink -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net8.0</TargetFrameworks>

<PackageId>Litetex.CoreFramework.CrashLogging</PackageId>
<Description>Things that are frequently used in code - CrashLogging Module</Description>
Expand All @@ -25,7 +25,7 @@

<ItemGroup>
<!-- SourceLink -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 99f9dbe

Please sign in to comment.