Skip to content

Commit

Permalink
Merge pull request #2 from vitalybibikov/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
vitalybibikov authored Apr 16, 2024
2 parents 36e8f84 + cb79c80 commit 97e8777
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 7 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jobs:
TRX_PATH: ${{ github.workspace }}/test-results #This should be the path to your TRX files
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Process trx reports
id: process-trx
# You may also reference just the major or major.minor version
Expand Down Expand Up @@ -77,3 +76,26 @@ jobs:
${{ steps.process-trx.outputs.test-results-file-path }}
retention-days: 90

build-and-publish:
needs: integration-tests
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && success()
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'

- name: Build and Pack
run: |
dotnet build src/DynamoDBv2.Transactions.csproj --configuration Release
dotnet pack src/DynamoDBv2.Transactions.csproj --configuration Release --output ./nupkgs /p:Version=3.7.$GITHUB_RUN_NUMBER
- name: Publish NuGet Package
uses: rohith/publish-nuget@v2
with:
package_path: ./nupkgs/*.nupkg
nuget_key: ${{ secrets.NUGET_PUSH_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -437,3 +437,4 @@ $RECYCLE.BIN/
tmp.txt
comm.txt
.vscode
*.snupkg
34 changes: 34 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Contributor Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our projects a welcoming experience for everyone, and to treat all with respect and professionalism.

## Our Standards

We adhere to our defined SDLC policy and commit to the WTW Code of Conduct and Values.

### WTW Values
- Client Focus
- Teamwork
- Integrity
- Respect
- Excellence

Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for our clients
- Showing empathy towards other community members

## Our Responsibilities

_Project administrators_ are responsible for ensuring their projects adhere to our SDLC Policy, such as ensuring code is reviewed prior to being merged.

We ask that all members speak up if they see behavior that does not align to this Code of Conduct, so managers can take appropriate action. If you are uncomfortable discussing something with your manager, please reach out to HR.

## Scope

This Code of Conduct applies to all projects within the service line, in any space members engage with each other, whether in GitHub, chat, phone/video conferencing, email, etc.
2 changes: 1 addition & 1 deletion DynamoDBv2.Transactions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{A282
scripts\localstack\dynamodb\init-aws.sh = scripts\localstack\dynamodb\init-aws.sh
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{302323FD-9917-45B3-AA5C-3D3A4396535C}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{302323FD-9917-45B3-AA5C-3D3A4396535C}"
ProjectSection(SolutionItems) = preProject
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
EndProjectSection
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Vitali Bibikov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
36 changes: 31 additions & 5 deletions src/DynamoDBv2.Transactions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.0.0</Version>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Version>3.7.0</Version>
<Copyright>vitalybibikov</Copyright>
<PackageTags>DynamoDB Transactions AWSSDK.DynamoDBv2 AWS Amazon aws-sdk-v3 extensions</PackageTags>
<PackageProjectUrl>https://github.com/vitalybibikov/DynamoDBv2.Transactions</PackageProjectUrl>
<RepositoryUrl>https://github.com/vitalybibikov/DynamoDBv2.Transactions</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<AssemblyName>DynamoDBv2.Transactions</AssemblyName>

</PropertyGroup>

<PropertyGroup>
Expand All @@ -32,9 +39,28 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.301.13" />
<PackageReference Include="MediatR" Version="12.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.301.13" >
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<PropertyGroup>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

</Project>
1 change: 1 addition & 0 deletions test/DynamoDBv2.Transactions.IntegrationTests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine3.18 AS build

COPY . .

WORKDIR "/app/test-results"
WORKDIR "/test/DynamoDBv2.Transactions.IntegrationTests"
RUN dotnet build "DynamoDBv2.Transactions.IntegrationTests.csproj"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.301.13" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.20.1" />
<PackageReference Include="Moq" Version="4.20.70" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.DynamoDBv2" Version="3.7.301.13" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
<PackageReference Include="Moq" Version="4.20.70" />
Expand Down

0 comments on commit 97e8777

Please sign in to comment.