update tests add github actions

This commit is contained in:
Tommy Parnell
2023-07-12 13:27:01 -04:00
parent 6c9a2904a6
commit 22f9a8e64b
17 changed files with 258 additions and 179 deletions

21
Makefile Normal file
View File

@@ -0,0 +1,21 @@
clean:
dotnet clean && rm -rf ./**/bin ./**/obj && rm -rf output
build: clean restore
dotnet build --no-restore
restore: clean
dotnet restore
test:
dotnet test /p:CollectCoverage=true
release-build: clean restore
dotnet build -c Release --no-restore
pack: release-build
dotnet pack src/UriBuilder.Fluent/UriBuilder.Fluent.csproj --configuration Release --output output
publish:
dotnet nuget push output/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key $(NUGET_API_KEY)
dotnet nuget push output/*.snupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key $(NUGET_API_KEY)
coveralls-push:
dotnet tool install -g coveralls.net
coverallsnet --opencover -i UriBuilder.Fluent.UnitTests/coverage.opencover.xml --useRelativePaths
check-format:
dotnet format --verify-no-changes
default: clean build