Skip to content

Commit

Permalink
SIANXSVC-1202: Disable lock files for NuGet restore
Browse files Browse the repository at this point in the history
This is likely a bug which is tracked in the SDK repository:
dotnet/sdk#38200

Closes SIANXSVC-1202
  • Loading branch information
nachtjasmin committed Jan 24, 2024
1 parent 7bd1753 commit d335e09
Show file tree
Hide file tree
Showing 6 changed files with 2,826 additions and 3,118 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
cache: true
cache-dependency-path: src/**/packages.lock.json

- run: dotnet restore --locked-mode
- run: dotnet restore

- run: dotnet pack --no-restore --include-symbols -o . /p:PackageVersion=${VERSION}

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "${{ matrix.dotnet-version }}"
cache: true
cache-dependency-path: src/**/packages.lock.json

- run: dotnet restore --locked-mode
- run: dotnet restore

- name: Run tests with coverage
run: dotnet test --no-restore --collect:"XPlat Code Coverage" /p:CoverletOutputFormat=opencover --logger trx --results-directory "test-results"
Expand Down
1 change: 0 additions & 1 deletion src/Anexia.E5E.Tests/Anexia.E5E.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
Loading

0 comments on commit d335e09

Please sign in to comment.