From f899d72fd48f01b9b636c06049c982c5e6493516 Mon Sep 17 00:00:00 2001 From: kolosovpetro Date: Sun, 10 Nov 2024 20:05:30 +0100 Subject: [PATCH] fix ci --- .github/workflows/post.yml | 9 ++++----- README.md | 5 +++++ backend/FitnessApp.sln | 12 ++++++++++++ .../PostService.Application.Tests.csproj | 4 ---- 4 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 README.md diff --git a/.github/workflows/post.yml b/.github/workflows/post.yml index 899462f..02109c3 100644 --- a/.github/workflows/post.yml +++ b/.github/workflows/post.yml @@ -3,7 +3,7 @@ name: Post Service CI/CD Pipeline on: push: paths: - - backend/src/PostService/** + - backend/src/** - .github/workflows/post.yml branches: - master @@ -12,8 +12,7 @@ on: - 'v*' pull_request: branches: - - master - - develop + - * jobs: build: @@ -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 @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c154307 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Fitness App + +## TODO + +- Fill readme properly \ No newline at end of file diff --git a/backend/FitnessApp.sln b/backend/FitnessApp.sln index 6cc18d2..0cca089 100644 --- a/backend/FitnessApp.sln +++ b/backend/FitnessApp.sln @@ -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 diff --git a/backend/tests/PostService/PostService.Application.Tests/PostService.Application.Tests.csproj b/backend/tests/PostService/PostService.Application.Tests/PostService.Application.Tests.csproj index 9e093cd..6f7600d 100644 --- a/backend/tests/PostService/PostService.Application.Tests/PostService.Application.Tests.csproj +++ b/backend/tests/PostService/PostService.Application.Tests/PostService.Application.Tests.csproj @@ -20,8 +20,4 @@ - - - -