Skip to content

Commit

Permalink
Introduce lockfiles (#786)
Browse files Browse the repository at this point in the history
* chore: enable lock file generation

* chore: add lock files

* chore: set ContinuousIntegrationBuild for each dotnet command

* chore: automatically set ContinuousIntegrationBuild to true when building with github actions

* chore: set TreatWarningsAsErrors to true for all projects

* chore: set EnforceCodeStyleInBuild to true for all projects

* chore: update lockfiles

* chore: explicitly set ContinuousIntegrationBuild for dotnet format and open source license check

* chore: update lock files

* ci: fix dotnet format by restoring separately

* chore: delete orphaned lockfiles

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
tnotheis and mergify[bot] authored Sep 17, 2024
1 parent 623dae7 commit c74e296
Show file tree
Hide file tree
Showing 120 changed files with 125,169 additions and 30 deletions.
3 changes: 2 additions & 1 deletion .ci/checkFormatting.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash

dotnet format --verify-no-changes
dotnet restore /p:ContinuousIntegrationBuild=true
dotnet format --no-restore --verify-no-changes
6 changes: 3 additions & 3 deletions .ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

dotnet restore "Backbone.sln"
dotnet build --no-restore "Backbone.sln"
dotnet test --no-restore --no-build --filter "Category!=Integration" --logger "GitHubActions;summary.includeNotFoundTests=false" "Backbone.sln"
dotnet restore /p:ContinuousIntegrationBuild=true "Backbone.sln"
dotnet build /p:ContinuousIntegrationBuild=true --no-restore "Backbone.sln"
dotnet test /p:ContinuousIntegrationBuild=true --no-restore --no-build --filter "Category!=Integration" --logger "GitHubActions;summary.includeNotFoundTests=false" "Backbone.sln"
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,6 @@ jobs:
- name: Show Ignored Packages
run: cat ./.ci/ignoredPackages.json
- name: Restore Solution
run: dotnet restore ./Backbone.sln
run: dotnet restore /p:ContinuousIntegrationBuild=true ./Backbone.sln
- name: Validate Licenses
run: nuget-license --input ./Backbone.sln --allowed-license-types ./.ci/allowedLicenses.json --ignored-packages ./.ci/ignoredPackages.json --output table --error-only
Loading

0 comments on commit c74e296

Please sign in to comment.