Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kolosovpetro committed Nov 10, 2024
1 parent fe09d6c commit f899d72
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Post Service CI/CD Pipeline
on:
push:
paths:
- backend/src/PostService/**
- backend/src/**
- .github/workflows/post.yml
branches:
- master
Expand All @@ -12,8 +12,7 @@ on:
- 'v*'
pull_request:
branches:
- master
- develop
- *

jobs:
build:
Expand All @@ -26,7 +25,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '8.x'

- name: Restore dependencies
run: dotnet restore ./backend/FitnessApp.sln
Expand All @@ -35,7 +34,7 @@ jobs:
run: dotnet build --configuration Release ./backend/FitnessApp.sln --no-restore

- name: Run tests
run: dotnet test ./backend/FitnessApp.sln --no-restore --verbosity normal
run: dotnet test ./backend/FitnessApp.sln --configuration Release --no-build --verbosity normal

docker:
needs: build
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Fitness App

## TODO

- Fill readme properly
12 changes: 12 additions & 0 deletions backend/FitnessApp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PostService.Domain.Tests",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PostService.Application.Tests", "tests\PostService\PostService.Application.Tests\PostService.Application.Tests.csproj", "{5325FC87-0538-4AE1-8979-F9597F3FF466}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{D5A12D19-86E3-4E83-8BF0-D9AF8C2477F3}"
ProjectSection(SolutionItems) = preProject
..\.github\workflows\post.yml = ..\.github\workflows\post.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution-items", "solution-items", "{CE086396-E7FB-46F7-87A9-4570DBF43597}"
ProjectSection(SolutionItems) = preProject
..\.gitignore = ..\.gitignore
..\LICENSE = ..\LICENSE
..\README.md = ..\README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,4 @@
<ProjectReference Include="..\..\..\src\PostService\PostService.Persistence\PostService.Persistence.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="QueryHandlerTests\" />
</ItemGroup>

</Project>

0 comments on commit f899d72

Please sign in to comment.