Skip to content

Commit

Permalink
Merge pull request #33 from eduardo-paes:development
Browse files Browse the repository at this point in the history
CI/CD
  • Loading branch information
eduardo-paes authored Nov 1, 2023
2 parents a6a2296 + 76b6ede commit 6e21c69
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 9 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/azure-webapps-dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ env:
DOTNET_VERSION: "7.0"
PROJECT_PATH: "src/Infrastructure/WebAPI/WebAPI.csproj"
WEBAPI_PATH: "src/Infrastructure/WebAPI/"
UNIT_TESTS_PROJ: "src/Domain.Tests/Domain.Tests.csproj"
INTEGRATION_TESTS_PROJ: "src/Application.Tests/Application.Tests.csproj"
ASPNETCORE_ENVIRONMENT: ${{ secrets.ASPNETCORE_ENVIRONMENT }}

on:
Expand Down Expand Up @@ -72,6 +74,24 @@ jobs:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp

test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Run Unit Tests
run: dotnet test ${{ env.UNIT_TESTS_PROJ }} --configuration Release

- name: Run Integration Tests
run: dotnet test ${{ env.INTEGRATION_TESTS_PROJ }} --configuration Release

deploy:
permissions:
contents: none
Expand Down
2 changes: 1 addition & 1 deletion src/Application.Tests/Application.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Application/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
17 changes: 17 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to this project will be documented in this file. See [versionize](https://github.com/versionize/versionize) for commit guidelines.

<a name="0.1.0"></a>
## [0.1.0](https://www.github.com/eduardo-paes/DotnetGraphQl/releases/tag/v0.1.0) (2023-11-1)

### Features

* Add CORS configuration ([eb8cde4](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/eb8cde421b565331008d8719e335ee5b4b00d391))
* Add user names to project GET endpoints ([05e2610](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/05e2610f8239e1424b21adb8aec3cb7d7dba0719))

### Bug Fixes

* Adjust GetUserById usecase ([e4774ed](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/e4774ed601ec0c27847732506047d653f7628ac8))
* Adjust subarea usecases ([75ae476](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/75ae476f8e013c1b5a2e0f36868e55131d77025a))
* Correction on project opening. ([8d258a8](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/8d258a8339c0e248bfcb8122cecb175df5f192e3))
* Disable CORS policy for tests ([9868851](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/98688510d106b00fd28f75f433854dace1bc6588))
* Enable correct StorageFileService ([a5557d4](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/a5557d4a054820b3b39eb17993477e6f2f7e6268))
* Enable IpRateLimiting in Startup ([2283568](https://www.github.com/eduardo-paes/DotnetGraphQl/commit/2283568bda84fed8416097fe9722e60491890473))

<a name="0.0.1"></a>
## [0.0.1](https://www.github.com/eduardo-paes/DotnetGraphQl/releases/tag/v0.0.1) (2023-10-24)

Expand Down
2 changes: 1 addition & 1 deletion src/Domain.Tests/Domain.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Domain/Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/IoC/IoC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Application\Application.csproj">
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Persistence/Persistence.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/Services/Services.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Domain\Domain.csproj">
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/WebAPI/WebAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>ef326666-1cfa-4625-aae3-41ea85c01828</UserSecretsId>
<BuildWithMSBuildOnMono>false</BuildWithMSBuildOnMono>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>

<PropertyGroup Condition=" '$(RunConfiguration)' == 'https' " />
Expand Down
2 changes: 1 addition & 1 deletion src/Infrastructure/WebFunctions/WebFunctions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<TargetFramework>net7.0</TargetFramework>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
<Version>0.0.1</Version>
<Version>0.1.0</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
Expand Down

0 comments on commit 6e21c69

Please sign in to comment.