Skip to content

Commit

Permalink
Add Cache NuGet packages - dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
crni99 authored Sep 17, 2024
1 parent 20de732 commit 19f6e8d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
dotnet-version: [8.0.x, 6.0.x]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -22,9 +23,15 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
6.0.x
dotnet-version: ${{ matrix.dotnet-version }}

- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
working-directory: ./AirportAutomation
Expand All @@ -37,5 +44,3 @@ jobs:
- name: Test
working-directory: ./AirportAutomation
run: dotnet test AirportAutomation.sln --no-build --verbosity normal


0 comments on commit 19f6e8d

Please sign in to comment.