Thanks to visit codestin.com
Credit goes to github.com

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
20 changes: 19 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,30 @@ jobs:
submodules: true # Fetch and checkout submodules
fetch-depth: 0 # Ensure the full history is fetched, useful when dealing with submodules

- name: 📦 Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: 💉 Install dependencies
run: dotnet restore

- name: 🛠️ Build
run: dotnet build --configuration Release --no-restore

- name: ✅ Test
run: dotnet test --no-restore --verbosity normal
run: dotnet test --no-restore --verbosity normal --logger "trx;LogFileName=TestResults.trx"

- name: ⬆️ Publish Test Results
uses: actions/upload-artifact@v4
if: success() || failure() # run this step even if previous step failed
with:
name: test-results
path: '**/TestResults/*.trx'
retention-days: 30

- name: 📦 Package NuGet
run: dotnet pack --no-build --configuration Release
Expand All @@ -34,6 +50,8 @@ jobs:
with:
name: nupkg
path: Guppi.Console/nupkg/*.nupkg
retention-days: 5
if-no-files-found: error

publish:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Guppi.Console/Guppi.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/rprouse/guppi</PackageProjectUrl>
<RepositoryUrl>https://github.com/rprouse/guppi</RepositoryUrl>
<PackageId>dotnet-guppi</PackageId>
<Version>6.5.0</Version>
<Version>6.5.1</Version>
<PackAsTool>true</PackAsTool>
<ToolCommandName>guppi</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
Expand Down