Skip to content

Commit

Permalink
Update Nuget dependencies (#61)
Browse files Browse the repository at this point in the history
* Also add bash helper scripts for code coverage and Nuget updates
  • Loading branch information
rogerk-unifysquare authored Aug 26, 2024
1 parent 46bcd8f commit 9a487cf
Show file tree
Hide file tree
Showing 15 changed files with 206 additions and 268 deletions.
38 changes: 38 additions & 0 deletions cover.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

BASE=$(dirname $0)
COVERAGE_DIR="$BASE/Coverage"
TEMP_RESULTS_DIR="$COVERAGE_DIR/temp"
HISTORY_DIR="$COVERAGE_DIR/history"

TEST_PROJECT_PATTERN=${TEST_PROJECT_PATTERN-'*.UnitTests.csproj'}
TEST_PARAMS=${TEST_PARAMS-"--nologo --no-restore"}
GENERATOR_PARAMS=${GENERATOR_PARAMS-"-filefilters:-*.g.cs"}

rm -rf $TEMP_RESULTS_DIR || true

if ! command -v reportgenerator &> /dev/null
then
echo reportgenerator could not be found
echo You may need to install it with:
echo
echo dotnet tool install -g dotnet-reportgenerator-globaltool
exit 1
fi

find $BASE -iname $TEST_PROJECT_PATTERN \
-exec dotnet test "{}" $TEST_PARAMS \
--collect:'XPlat Code Coverage;Format=opencover' \
--results-directory $TEMP_RESULTS_DIR \;

reportgenerator \
-reports:"$TEMP_RESULTS_DIR/**/coverage.opencover.xml" \
-reporttypes:'Html;Cobertura' \
-targetdir:"$COVERAGE_DIR" \
-assemblyfilters:"-$TEST_PROJECT_PATTERN" \
-verbosity:Warning \
-historydir:"$HISTORY_DIR" \
"$GENERATOR_PARAMS"

echo
echo Finished report generation. Report is located here: $COVERAGE_DIR/index.html
12 changes: 2 additions & 10 deletions examples/Publisher/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,8 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
Expand All @@ -335,11 +332,6 @@
"resolved": "8.0.0",
"contentHash": "FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "8.0.0",
Expand Down
12 changes: 2 additions & 10 deletions examples/RuntimeKeySelection/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,8 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
Expand All @@ -149,11 +146,6 @@
"resolved": "8.0.0",
"contentHash": "FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"nsign.abstractions": {
"type": "Project",
"dependencies": {
Expand Down
12 changes: 2 additions & 10 deletions examples/Subscriber/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,14 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "AurL6Y5BA1WotzlEvVaIDpqzpIPvYnnldxru8oXJU2yFxFUy3+pNXjXd1ymO+RA0rq0+590Q8gaz2l3Sr7fmqg=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"nsign.abstractions": {
"type": "Project",
"dependencies": {
Expand Down
20 changes: 6 additions & 14 deletions src/NSign.Abstractions/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -163,8 +163,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -240,11 +240,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"System.Collections.Immutable": {
"type": "Direct",
Expand All @@ -261,11 +258,6 @@
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
}
}
}
Expand Down
16 changes: 4 additions & 12 deletions src/NSign.AspNetCore/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -86,11 +86,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
Expand Down Expand Up @@ -133,11 +130,6 @@
"resolved": "8.0.0",
"contentHash": "AurL6Y5BA1WotzlEvVaIDpqzpIPvYnnldxru8oXJU2yFxFUy3+pNXjXd1ymO+RA0rq0+590Q8gaz2l3Sr7fmqg=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"nsign.abstractions": {
"type": "Project",
"dependencies": {
Expand Down
20 changes: 6 additions & 14 deletions src/NSign.BouncyCastle/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -189,8 +189,8 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -274,22 +274,14 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "AurL6Y5BA1WotzlEvVaIDpqzpIPvYnnldxru8oXJU2yFxFUy3+pNXjXd1ymO+RA0rq0+590Q8gaz2l3Sr7fmqg=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"nsign.abstractions": {
"type": "Project",
"dependencies": {
Expand Down
20 changes: 6 additions & 14 deletions src/NSign.Client/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -229,8 +229,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -365,11 +365,8 @@
"StructuredFieldValues": {
"type": "Direct",
"requested": "[0.*, )",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"System.Collections.Immutable": {
"type": "Direct",
Expand Down Expand Up @@ -482,11 +479,6 @@
"resolved": "8.0.0",
"contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"nsign.abstractions": {
"type": "Project",
"dependencies": {
Expand Down
20 changes: 6 additions & 14 deletions src/NSign.SignatureProviders/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -177,8 +177,8 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg==",
"dependencies": {
"System.Memory": "4.5.5"
}
Expand Down Expand Up @@ -256,22 +256,14 @@
},
"StructuredFieldValues": {
"type": "Transitive",
"resolved": "0.5.3",
"contentHash": "G0uqNU82bf3dloMYkzHyThT35D64SpDK8pe2/xO1TDU39R2t1PTNuzIv1HT7OgdVOWDyZ6kKxS5H0hVVcMhvPw==",
"dependencies": {
"System.Memory": "4.5.5"
}
"resolved": "0.6.3",
"contentHash": "EgCsxEnSeXuamDL6AV8ygCI+WHNodfgARlpqBT1MQjy4Qxg8VQA7IHlH5jFbzhXKpWIL2mU8+/Ed3yW/At9vWg=="
},
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "AurL6Y5BA1WotzlEvVaIDpqzpIPvYnnldxru8oXJU2yFxFUy3+pNXjXd1ymO+RA0rq0+590Q8gaz2l3Sr7fmqg=="
},
"System.Memory": {
"type": "Transitive",
"resolved": "4.5.5",
"contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw=="
},
"nsign.abstractions": {
"type": "Project",
"dependencies": {
Expand Down
Loading

0 comments on commit 9a487cf

Please sign in to comment.