mirror of
https://github.com/ditkrg/DIT.Workflower.git
synced 2026-01-22 22:06:42 +00:00
Update GitHub Actions workflows to use the latest versions of actions/setup-dotnet and actions/checkout
This commit is contained in:
parent
f99bd9b15c
commit
8ec528f2e0
9
.github/workflows/deploy-nuget.yaml
vendored
9
.github/workflows/deploy-nuget.yaml
vendored
@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
name: Deploy To Nuget
|
name: Deploy To Nuget
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -19,13 +20,13 @@ jobs:
|
|||||||
build-push:
|
build-push:
|
||||||
name: Build and Publish
|
name: Build and Publish
|
||||||
needs: [test]
|
needs: [test]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-dotnet@v3
|
- uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: "6.0.x"
|
dotnet-version: "8.0.x"
|
||||||
|
|
||||||
- name: Restore packages
|
- name: Restore packages
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|||||||
16
.github/workflows/tests-base.yaml
vendored
16
.github/workflows/tests-base.yaml
vendored
@ -13,7 +13,7 @@ on:
|
|||||||
sonarqube:
|
sonarqube:
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
default: fals
|
default: false
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
SONARQUBE_HOST:
|
SONARQUBE_HOST:
|
||||||
@ -34,11 +34,11 @@ jobs:
|
|||||||
ASPNETCORE_ENVIRONMENT: Testing
|
ASPNETCORE_ENVIRONMENT: Testing
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-dotnet@v3
|
- uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: "6.0.x"
|
dotnet-version: "8.0.x"
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: ${{ !inputs.sonarqube }}
|
if: ${{ !inputs.sonarqube }}
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
@ -48,14 +48,14 @@ jobs:
|
|||||||
###############################
|
###############################
|
||||||
########## SONARQUBE ##########
|
########## SONARQUBE ##########
|
||||||
###############################
|
###############################
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v4
|
||||||
if: ${{ inputs.sonarqube }}
|
if: ${{ inputs.sonarqube }}
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: "11"
|
java-version: "17"
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: ${{ inputs.sonarqube }}
|
if: ${{ inputs.sonarqube }}
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||||
|
|||||||
@ -1,13 +1,29 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
|
<IsPackable>true</IsPackable>
|
||||||
|
<PackageId>DIT.Workflower.DependencyInjection</PackageId>
|
||||||
|
<Authors>DIT</Authors>
|
||||||
|
<Company>DIT</Company>
|
||||||
|
|
||||||
|
<!-- Symbols for nuget -->
|
||||||
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
|
|
||||||
|
<!-- Deterministic Builds -->
|
||||||
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||||
|
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup >
|
<ItemGroup >
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0" Condition="'$(TargetFramework)' == 'net6.0'" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0" Condition="'$(TargetFramework)' == 'net7.0'" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0" Condition="'$(TargetFramework)' == 'net8.0'" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -5,6 +5,20 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
|
|
||||||
|
<IsPackable>true</IsPackable>
|
||||||
|
<PackageId>DIT.Workflower</PackageId>
|
||||||
|
<Authors>DIT</Authors>
|
||||||
|
<Company>DIT</Company>
|
||||||
|
|
||||||
|
<!-- Symbols for nuget -->
|
||||||
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
|
|
||||||
|
<!-- Deterministic Builds -->
|
||||||
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||||
|
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user