Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/release-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ jobs:
runs-on: ubuntu-latest
name: Update NuGet package
steps:

- id: checkout
name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -24,7 +23,7 @@ jobs:
uses: actions/setup-node@v4

- id: setup-dot-net
name: Setup .NET
name: Setup .NET
uses: actions/setup-dotnet@v4

- id: setup-libraries
Expand Down Expand Up @@ -78,13 +77,13 @@ jobs:
ref: "refs/tags/v${{ env.sdk_version }}",
sha: "${{ env.commit_sha }}"
})

- id: generate-package
name: Build solution and generate NuGet package
if: ${{ !env.ACT }}
run: |
run: |
cd ./src/It.FattureInCloud.Sdk/
dotnet pack -c Release -o out
dotnet pack -c Release -o out

- id: publish
name: Publish the package to nuget.org
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: C# SDK Validation

on:
pull_request:
branches: [ master ]
branches: [master]
jobs:
validate:
runs-on: ubuntu-latest
Expand All @@ -11,34 +11,33 @@ jobs:
# matrix:
# # dotnet: [ '3.1.x', '5.0.x' ]
# dotnet: [ '3.1.x' ]

name: Dotnet validation

steps:
- id: checkout
name: Checkout repo
uses: actions/checkout@v4

- id: setup-dotnet
name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
5.0.x
dotnet-version: |
6.0.x

- id: clean
name: Clean
run: dotnet clean

- id: restore
name: Restore dependencies
run: dotnet restore
- id: build

- id: build
name: Build
run: dotnet build --no-restore --configuration=Release

- id: test
name: Test
run: dotnet test --no-build --verbosity normal --configuration=Release
run: dotnet test --no-build --verbosity normal --configuration=Release
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<AssemblyName>It.FattureInCloud.Sdk.Test</AssemblyName>
<RootNamespace>It.FattureInCloud.Sdk.Test</RootNamespace>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks>net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand All @@ -17,4 +17,4 @@
<ItemGroup>
<ProjectReference Include="..\It.FattureInCloud.Sdk\It.FattureInCloud.Sdk.csproj" />
</ItemGroup>
</Project>
</Project>
Loading