diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 71b06339b8..5626e60562 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -43,6 +43,13 @@ jobs: 8.0.x 7.0.x 6.0.x + cache: true + cache-dependency-path: | + Directory.Packages.props + **/*.csproj + + - name: Restore dependencies + run: dotnet restore ProtoActor.sln - name: Run tests ${{ matrix.test }} timeout-minutes: 15 @@ -73,6 +80,13 @@ jobs: 8.0.x 7.0.x 6.0.x + cache: true + cache-dependency-path: | + Directory.Packages.props + **/*.csproj + + - name: Restore dependencies + run: dotnet restore ProtoActor.sln - name: Run tests ${{ matrix.test }} timeout-minutes: 15 run: | @@ -92,7 +106,14 @@ jobs: 8.0.x 7.0.x 6.0.x - + cache: true + cache-dependency-path: | + Directory.Packages.props + **/*.csproj + + - name: Restore dependencies + run: dotnet restore ProtoActor.sln + - name: Create and push NuGet package run: | dotnet pack ProtoActor.sln -c Release -o nuget -p:SymbolPackageFormat=snupkg -p:GenerateDocumentationFile=true -p:NoWarn=CS1591 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 0827b4ca54..450fcab66f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -31,6 +31,13 @@ jobs: 8.0.x 7.0.x 6.0.x + cache: true + cache-dependency-path: | + Directory.Packages.props + **/*.csproj + + - name: Restore dependencies + run: dotnet restore ProtoActor.sln - name: Build run: dotnet build ProtoActor.sln -c Release @@ -67,6 +74,13 @@ jobs: 8.0.x 7.0.x 6.0.x + cache: true + cache-dependency-path: | + Directory.Packages.props + **/*.csproj + + - name: Restore dependencies + run: dotnet restore ProtoActor.sln - name: Run tests ${{ matrix.test }} timeout-minutes: 15 @@ -97,6 +111,13 @@ jobs: 8.0.x 7.0.x 6.0.x + cache: true + cache-dependency-path: | + Directory.Packages.props + **/*.csproj + + - name: Restore dependencies + run: dotnet restore ProtoActor.sln - name: Run tests ${{ matrix.test }} timeout-minutes: 15 run: |