Template
try cache
This commit is contained in:
@@ -8,6 +8,8 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
dotnet-version: [ '8.0.x' ]
|
dotnet-version: [ '8.0.x' ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@@ -23,9 +25,11 @@ jobs:
|
|||||||
echo "${{ vars.EXECUTABLE_NAME }}"
|
echo "${{ vars.EXECUTABLE_NAME }}"
|
||||||
echo "${{ vars.RUNTIME }}"
|
echo "${{ vars.RUNTIME }}"
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ matrix.dotnet-version }}
|
dotnet-version: ${{ matrix.dotnet-version }}
|
||||||
|
cache: true
|
||||||
|
cache-dependency-path: subdir/packages.lock.json
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Test with dotnet
|
- name: Test with dotnet
|
||||||
|
|||||||
Reference in New Issue
Block a user