diff --git a/.github/workflows/AccountPipeline.yml b/.github/workflows/AccountPipeline.yml index 003e523..090fd06 100644 --- a/.github/workflows/AccountPipeline.yml +++ b/.github/workflows/AccountPipeline.yml @@ -20,11 +20,13 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: 8.0.x - - name: Restore dependencies + -name: Restore dependencies for Account project run: dotnet restore Backend/Account/Account.csproj - - name: Build + - name: Restore dependencies for Account Test project + run: dotnet restore Backend/Tests/Account.Test/Account.Test.csproj + - name: Build Account project run: dotnet build Backend/Account/Account.csproj --no-restore - - name: Test + - name: Run tests run: dotnet test Backend/Tests/Account.Test/Account.Test.csproj --no-build --verbosity normal - name: Log in to DockerHub diff --git a/Backend/Account/Services/AccountService.cs b/Backend/Account/Services/AccountService.cs index 247bd4c..698b6b2 100644 --- a/Backend/Account/Services/AccountService.cs +++ b/Backend/Account/Services/AccountService.cs @@ -11,7 +11,7 @@ public class AccountService(DatabaseContext _accountDbContext, IConfiguration co { private readonly AsyncRetryPolicy _dbRetryPolicy = Policy.Handle().WaitAndRetryAsync(3, i => TimeSpan.FromSeconds(10)); - public async Task?> Login(LoginRequestDTO request) + public async Task?> Login(LoginRequestDTO request) { var account = await _accountDbContext.Accounts.FirstOrDefaultAsync(x => x.Email == request.email); if (account is null) return null;