Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions #209

Merged
merged 5 commits into from
Feb 25, 2025
Merged
Changes from 1 commit
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
18 changes: 18 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ 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@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-

- name: 💉 Install dependencies
run: dotnet restore

Expand All @@ -26,6 +34,14 @@ jobs:
- name: ✅ Test
run: dotnet test --no-restore --verbosity normal

- 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
Loading