feat: initial solution with HrynCo.DAL.Abstract and HrynCo.DAL.EF
- HrynCo.DAL.Abstract: IEntity<TId>, Entity base classes, ITransaction, IUnitOfWork - HrynCo.DAL.EF: EfRepository<TDbContext,TEntity>, EfUnitOfWork<TDbContext>, EfTransactionAdapter - Directory.Packages.props with centralized EF Core 9.0.5 versions - TeamCity pipeline YAMLs for general-checks and publish Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
jobs:
|
||||
general-checks:
|
||||
name: general-checks
|
||||
runs-on:
|
||||
self-hosted:
|
||||
- teamcity.agent.name: ItemTrackerDotNet10
|
||||
steps:
|
||||
- type: script
|
||||
script-content: dotnet restore hrynco-ef.slnx
|
||||
- type: script
|
||||
script-content: dotnet build hrynco-ef.slnx -c Release --no-restore
|
||||
- type: script
|
||||
script-content: dotnet test hrynco-ef.slnx --no-build -c Release
|
||||
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
# Build number pattern should be set to: 1.0.%build.counter%
|
||||
# Trigger: on push to main branch
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: publish
|
||||
runs-on:
|
||||
self-hosted:
|
||||
- teamcity.agent.name: ItemTrackerDotNet10
|
||||
steps:
|
||||
- type: script
|
||||
script-content: >-
|
||||
pwsh -Command "Set-Content -Path 'Directory.Build.props' -Encoding UTF8 -Value
|
||||
'<Project><PropertyGroup><Version>%build.number%</Version></PropertyGroup></Project>'"
|
||||
|
||||
- type: script
|
||||
script-content: dotnet restore hrynco-ef.slnx
|
||||
|
||||
- type: script
|
||||
script-content: dotnet build hrynco-ef.slnx -c Release --no-restore
|
||||
|
||||
- type: script
|
||||
script-content: dotnet pack hrynco-ef.slnx -c Release --no-build -o artifacts
|
||||
|
||||
- type: script
|
||||
script-content: >-
|
||||
dotnet nuget push "artifacts/HrynCo.DAL.Abstract.*.nupkg"
|
||||
--api-key %nuget-api-key%
|
||||
--source https://api.nuget.org/v3/index.json
|
||||
|
||||
- type: script
|
||||
script-content: >-
|
||||
dotnet nuget push "artifacts/HrynCo.DAL.EF.*.nupkg"
|
||||
--api-key %nuget-api-key%
|
||||
--source https://api.nuget.org/v3/index.json
|
||||
|
||||
secrets:
|
||||
nuget-api-key: credentialsJSON:a414ca02-733e-4588-9a5d-e0f0f5653d48
|
||||
Reference in New Issue
Block a user