Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rprouse committed Feb 25, 2025
1 parent b54c212 commit f28cd67
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit f28cd67

Please sign in to comment.