Skip to content

Commit

Permalink
Merge pull request #12 from reecerussell/use-transaction-providers
Browse files Browse the repository at this point in the history
Major rewrite introducing driver specific packages
  • Loading branch information
reecerussell authored Sep 1, 2021
2 parents 88dd8fd + d0d3a7b commit 8a3c159
Show file tree
Hide file tree
Showing 78 changed files with 3,463 additions and 1,535 deletions.
61 changes: 31 additions & 30 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: Build
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -20,30 +20,13 @@ jobs:
with:
dotnet-version: '3.1.x'

- name: Restore
run: |
dotnet restore TxCommand/TxCommand.csproj
dotnet restore TxCommand.Tests/TxCommand.Tests.csproj
- name: Build TxCommand
run: dotnet build -c Release --no-restore TxCommand/TxCommand.csproj

- name: Build TxCommand.Abstractions
run: dotnet build -c Release --no-restore TxCommand.Abstractions/TxCommand.Abstractions.csproj

- name: Unit Test
run: dotnet test --no-restore -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura TxCommand.Tests/TxCommand.Tests.csproj

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
file: TxCommand.Tests/coverage.cobertura.xml
dotnet-version: '5.x'

- name: Pack TxCommand
run: dotnet pack -c Release --no-restore --no-build -o packages TxCommand/TxCommand.csproj

- name: Pack TxCommand.Abstractions
run: dotnet pack -c Release --no-restore --no-build -o packages TxCommand.Abstractions/TxCommand.Abstractions.csproj
- name: Build
run: ./scripts/build.sh

- name: Upload Artifacts
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
Expand All @@ -60,17 +43,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Pull Database Image
run: docker pull mcr.microsoft.com/mssql/server:2017-CU17-ubuntu
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

- name: Restore
run: dotnet restore Example/TxCommand.Example.IntegrationTests/TxCommand.Example.IntegrationTests.csproj
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.x'

- name: Build
run: dotnet build --no-restore Example/TxCommand.Example.IntegrationTests/TxCommand.Example.IntegrationTests.csproj
- name: Pull Database Images
run: |
docker pull mcr.microsoft.com/mssql/server:2019-latest
docker pull mysql:8.0.23
- name: Test
run: dotnet test Example/TxCommand.Example.IntegrationTests/TxCommand.Example.IntegrationTests.csproj
run: ./scripts/test.sh

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
files: >
./Coverage/TxCommand.Net5.Tests/coverage.cobertura.xml,./Coverage/TxCommand.NetCore3_1.Tests/coverage.cobertura.xml,./Sql/Coverage/TxCommand.Sql.Net5.Tests/coverage.cobertura.xml,./Sql/Coverage/TxCommand.Sql.NetCore3_1.Tests/coverage.cobertura.xml
publish:
name: Publish
Expand All @@ -94,3 +89,9 @@ jobs:

- name: Publish TxCommand.Abstractions
run: dotnet nuget push packages/TxCommand.Abstractions.*.*.*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://www.nuget.org/api/v2/package --skip-duplicate

- name: Publish TxCommand
run: dotnet nuget push packages/TxCommand.Sql.*.*.*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://www.nuget.org/api/v2/package --skip-duplicate

- name: Publish TxCommand.Abstractions
run: dotnet nuget push packages/TxCommand.Sql.Abstractions.*.*.*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://www.nuget.org/api/v2/package --skip-duplicate
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**/obj/*
*.user

TxCommand.Tests/coverage.json
TxCommand.Tests/coverage.cobertura.xml
TxCommand.Tests/TestResults
*coverage.json
*coverage.cobertura.xml
TestResults
Coverage
80 changes: 0 additions & 80 deletions Example/TxCommand.Example.IntegrationTests/AddPetTests.cs

This file was deleted.

85 changes: 0 additions & 85 deletions Example/TxCommand.Example.IntegrationTests/AddPetsTests.cs

This file was deleted.

87 changes: 0 additions & 87 deletions Example/TxCommand.Example.IntegrationTests/CreatePersonTests.cs

This file was deleted.

Loading

0 comments on commit 8a3c159

Please sign in to comment.