Skip to content

Commit

Permalink
Merge pull request #209 from rprouse/actions
Browse files Browse the repository at this point in the history
Update github actions
  • Loading branch information
rprouse authored Feb 25, 2025
2 parents b54c212 + cc8f7ee commit 8c1d1eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
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

0 comments on commit 8c1d1eb

Please sign in to comment.