Fix action (#42)

This commit is contained in:
Patrick Stevens
2025-03-17 20:00:07 +00:00
committed by GitHub
parent 545c9bef20
commit 2c3e3c7cad

View File

@@ -27,16 +27,17 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # so that NerdBank.GitVersioning has access to history
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
dotnet-version: 7.0.x
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Restore dependencies
run: dotnet restore
run: nix develop --command dotnet restore
- name: Build
run: dotnet build --no-restore --configuration ${{matrix.config}}
run: nix develop --command dotnet build --no-restore --configuration ${{matrix.config}}
- name: Test
run: dotnet test --no-build --verbosity normal --configuration ${{matrix.config}}
run: nix develop --command dotnet test --no-build --verbosity normal --configuration ${{matrix.config}}
build-nix:
runs-on: ubuntu-latest