diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index dddaa02..c7a95ae 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -23,16 +23,17 @@ jobs: steps: - uses: actions/checkout@v4 - - 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}} run-app: runs-on: ubuntu-latest diff --git a/flake.lock b/flake.lock index 988f085..e55df67 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1733935885, - "narHash": "sha256-xyiHLs6KJ1fxeGmcCxKjJE4yJknVJxbC8Y/ZRYyC8WE=", + "lastModified": 1734435836, + "narHash": "sha256-kMBQ5PRiFLagltK0sH+08aiNt3zGERC2297iB6vrvlU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5a48e3c2e435e95103d56590188cfed7b70e108c", + "rev": "4989a246d7a390a859852baddb1013f825435cee", "type": "github" }, "original": {