diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 80131c9..9f57ee4 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -26,19 +26,19 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.15 + uses: gittools/actions/gitversion/setup@v0.10.2 with: versionSpec: '5.x' - name: Use GitVersion id: gitversion # step id used as reference for output values - uses: gittools/actions/gitversion/execute@v0.9.15 + uses: gittools/actions/gitversion/execute@v0.10.2 - name: Build info run: | @@ -81,7 +81,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Update project version uses: roryprimrose/set-vs-sdk-project-version@v1 @@ -103,7 +103,7 @@ jobs: #### Start SonarCloud steps - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '11' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7aa9af7..1df8d03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Fetch all history for all tags and branches run: git fetch --prune --unshallow @@ -78,7 +78,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Update project version uses: roryprimrose/set-vs-sdk-project-version@v1 @@ -100,7 +100,7 @@ jobs: #### Start SonarCloud steps - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '11' diff --git a/.github/workflows/deploy-demo-site.yml b/.github/workflows/deploy-demo-site.yml index 90b318f..4de58ae 100644 --- a/.github/workflows/deploy-demo-site.yml +++ b/.github/workflows/deploy-demo-site.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up .NET Core uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: Build with dotnet run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release @@ -33,7 +33,7 @@ jobs: run: dotnet publish ${{ env.PROJECT_PATH }} -c Release -o ${{env.DOTNET_ROOT}}/myapp - name: Deploy to Azure Web App (Windows) - uses: azure/webapps-deploy@v2 + uses: azure/webapps-deploy@v3 with: app-name: 'aspnetcoreversioninfo-demo' slot-name: 'production' @@ -41,7 +41,7 @@ jobs: package: ${{env.DOTNET_ROOT}}/myapp - name: Deploy to Azure Web App (Linux) - uses: azure/webapps-deploy@v2 + uses: azure/webapps-deploy@v3 with: app-name: 'aspnetcoreversioninfo-linux-demo' slot-name: 'production' diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a2a9900..7a1599b 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -41,7 +41,7 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 @@ -50,6 +50,6 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v4 + uses: github/super-linter@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index a53029f..c7220dc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![NuGet version](https://img.shields.io/nuget/v/AspNetCore.VersionInfo?color=yellowgreen)](http://www.nuget.org/packages/AspNetCore.VersionInfo) ![.NET](https://github.com/salem84/AspNetCore.VersionInfo/workflows/.NET/badge.svg) [![License](https://img.shields.io/badge/License-Apache%202.0-red.svg)](https://github.com/salem84/AspNetCore.VersionInfo/blob/master/LICENSE) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=salem84_AspNetCore.VersionInfo&metric=coverage)](https://sonarcloud.io/dashboard?id=salem84_AspNetCore.VersionInfo) +[![NuGet version](https://img.shields.io/nuget/v/AspNetCore.VersionInfo?color=yellowgreen)](http://www.nuget.org/packages/AspNetCore.VersionInfo) ![.NET](https://img.shields.io/badge/.NET-8.0-blueviolet) [![License](https://img.shields.io/badge/License-Apache%202.0-red.svg)](https://github.com/salem84/AspNetCore.VersionInfo/blob/master/LICENSE) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=salem84_AspNetCore.VersionInfo&metric=coverage)](https://sonarcloud.io/dashboard?id=salem84_AspNetCore.VersionInfo) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=salem84_AspNetCore.VersionInfo&metric=security_rating)](https://sonarcloud.io/dashboard?id=salem84_AspNetCore.VersionInfo) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=salem84_AspNetCore.VersionInfo&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=salem84_AspNetCore.VersionInfo) @@ -40,7 +40,7 @@ Release packages are on [Nuget](http://www.nuget.org/packages/AspNetCore.Version |![Win](docs/images/win_med.png) **Windows Web App**| https://aspnetcoreversioninfo-demo.azurewebsites.net | |![Win](docs/images/win_med.png) **Windows HTML Endpoint** | [/version/html](https://aspnetcoreversioninfo-demo.azurewebsites.net/version/html) | |![Win](docs/images/win_med.png) **Windows JSON Endpoint** | [/version/json](https://aspnetcoreversioninfo-demo.azurewebsites.net/version/json) | -|![Win](docs/images/win_med.png) **Windows Badge Endpoint** | [![/version/badge](https://aspnetcoreversioninfo-demo.azurewebsites.net/version/badge/RuntimeInformation.RuntimeIdentifier?color=BrightGreen&label=os&icon=simpleicons__windows)](https://aspnetcoreversioninfo-demo.azurewebsites.net/version/badge/RuntimeInformation.RuntimeIdentifier?color=BrightGreen&label=os&icon=simpleicons__windows) | +|![Win](docs/images/win_med.png) **Windows Badge Endpoint** | [![/version/badge](https://aspnetcoreversioninfo-demo.azurewebsites.net/version/badge/RuntimeInformation.RuntimeIdentifier?color=BrightGreen&label=os)](https://aspnetcoreversioninfo-demo.azurewebsites.net/version/badge/RuntimeInformation.RuntimeIdentifier?color=BrightGreen&label=os) | | | | |![Linux](docs/images/linux_med.png) **Linux Web App**| https://aspnetcoreversioninfo-linux-demo.azurewebsites.net | |![Linux](docs/images/linux_med.png) **Linux HTML Endpoint**| [/version/html](https://aspnetcoreversioninfo-linux-demo.azurewebsites.net/version/html) | @@ -127,7 +127,7 @@ where `{versionInfoId}` is a key returned by providers. Moreover endpoint accepts following parameters in querystring: * `label`: it's the name to show in the image -* `icon`: the source type and slug for the icon separated by two underscore characters (`__`) such as `simpleicons__azure`. In this version only [Simple Icons](https://simpleicons.org/) type is supported; you can find a list of slugs [here](https://github.com/simple-icons/simple-icons/blob/develop/slugs.md). Icon color is always white. +* `icon`: the source type and slug for the icon separated by two underscore characters (`__`) such as `simpleicons__linux`. In this version only [Simple Icons](https://simpleicons.org/) type is supported; you can find a list of slugs [here](https://github.com/simple-icons/simple-icons/blob/develop/slugs.md). Icon color is always white. * `color`: a string as defined in the colors table or a custom colors in hexadecimal, RGB, HSL. | Color | String | diff --git a/samples/Authentication/Authentication.csproj b/samples/Authentication/Authentication.csproj index f8d14b5..a8867c0 100644 --- a/samples/Authentication/Authentication.csproj +++ b/samples/Authentication/Authentication.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 true 3.1.0 diff --git a/samples/Basic/Basic.csproj b/samples/Basic/Basic.csproj index cdd19d8..66d554e 100644 --- a/samples/Basic/Basic.csproj +++ b/samples/Basic/Basic.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 true 2.5.0 diff --git a/samples/Basic/Pages/Index.cshtml b/samples/Basic/Pages/Index.cshtml index e3d5b75..238af39 100644 --- a/samples/Basic/Pages/Index.cshtml +++ b/samples/Basic/Pages/Index.cshtml @@ -10,7 +10,7 @@ entry-assembly framework-description - runtime-identifier + runtime-identifier

diff --git a/samples/CustomOptions/CustomOptions.csproj b/samples/CustomOptions/CustomOptions.csproj index 8a7df39..6e38fd6 100644 --- a/samples/CustomOptions/CustomOptions.csproj +++ b/samples/CustomOptions/CustomOptions.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 true diff --git a/samples/Minimal/Minimal.csproj b/samples/Minimal/Minimal.csproj index 13d8a87..e469ddf 100644 --- a/samples/Minimal/Minimal.csproj +++ b/samples/Minimal/Minimal.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable true diff --git a/src/AspNetCore.VersionInfo/AspNetCore.VersionInfo.csproj b/src/AspNetCore.VersionInfo/AspNetCore.VersionInfo.csproj index 438c6db..45e6e27 100644 --- a/src/AspNetCore.VersionInfo/AspNetCore.VersionInfo.csproj +++ b/src/AspNetCore.VersionInfo/AspNetCore.VersionInfo.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 https://github.com/salem84/AspNetCore.VersionInfo https://github.com/salem84/AspNetCore.VersionInfo @@ -49,9 +49,9 @@ - - - + + + diff --git a/tests/AspNetCore.VersionInfo.Tests/AspNetCore.VersionInfo.Tests.csproj b/tests/AspNetCore.VersionInfo.Tests/AspNetCore.VersionInfo.Tests.csproj index 9453eb0..e20760b 100644 --- a/tests/AspNetCore.VersionInfo.Tests/AspNetCore.VersionInfo.Tests.csproj +++ b/tests/AspNetCore.VersionInfo.Tests/AspNetCore.VersionInfo.Tests.csproj @@ -1,30 +1,30 @@  - net6.0 + net8.0 false - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - +