Skip to content

try to cache .net stuff #47

try to cache .net stuff

try to cache .net stuff #47

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Test
on:
push:
branches: [ "pending-main", "main" ]
pull_request:
branches: [ "pending-main", "main" ]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
lfs: 'true'
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Test
run: dotnet test src/ --verbosity normal