diff --git a/.github/workflows/codebreaker-lib-cosmos-stable.yml b/.github/workflows/codebreaker-lib-cosmos-stable.yml new file mode 100644 index 00000000..8806f344 --- /dev/null +++ b/.github/workflows/codebreaker-lib-cosmos-stable.yml @@ -0,0 +1,55 @@ +name: Cosmos stable lib + +on: + + # Allow manually trigger + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + env: + solutionfile-path: src/Codebreaker.Backend.Cosmos.sln + projectfile-path: src/services/gameapi/Codebreaker.Data.Cosmos/Codebreaker.Data.Cosmos.csproj + artifact-name: codebreaker-cosmos-stable + + steps: + - name: Checkout to the branch + uses: actions/checkout@v4 + with: + ref: main + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Build the library + run: dotnet build -c Release ${{ env.solutionfile-path }} + + - name: Run the unit tests + run: dotnet test ${{ env.solutionfile-path }} + + - name: Create a Package + run: dotnet pack -c Release ${{ env.projectfile-path }} -o packages + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ env.artifact-name }} + path: packages/* + retention-days: 30 + + publishdevops: + uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-azuredevops.yml@main + needs: build + with: + artifact-name: codebreaker-cosmos-stable + secrets: inherit + + publishnuget: + uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-nugetserver.yml@main + needs: publishdevops + with: + artifact-name: codebreaker-cosmos-stable + secrets: inherit diff --git a/.github/workflows/codebreaker-lib-sqlserver-stable.yml b/.github/workflows/codebreaker-lib-sqlserver-stable.yml new file mode 100644 index 00000000..a9cbd76f --- /dev/null +++ b/.github/workflows/codebreaker-lib-sqlserver-stable.yml @@ -0,0 +1,55 @@ +name: SqlServer stable lib + +on: + + # Allow manually trigger + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + env: + solutionfile-path: src/Codebreaker.Backend.SqlServer.sln + projectfile-path: src/services/gameapi/Codebreaker.Data.SqlServer/Codebreaker.Data.SqlServer.csproj + artifact-name: codebreaker-sqlserver-stable + + steps: + - name: Checkout to the branch + uses: actions/checkout@v4 + with: + ref: main + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Build the library + run: dotnet build -c Release ${{ env.solutionfile-path }} + + - name: Run the unit tests + run: dotnet test ${{ env.solutionfile-path }} + + - name: Create a Package + run: dotnet pack -c Release ${{ env.projectfile-path }} -o packages + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ env.artifact-name }} + path: packages/* + retention-days: 30 + + publishdevops: + uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-azuredevops.yml@main + needs: build + with: + artifact-name: codebreaker-sqlserver-stable + secrets: inherit + + publishnuget: + uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-nugetserver.yml@main + needs: publishdevops + with: + artifact-name: codebreaker-sqlserver-stable + secrets: inherit diff --git a/src/services/gameapi/Codebreaker.Data.Cosmos/Codebreaker.Data.Cosmos.csproj b/src/services/gameapi/Codebreaker.Data.Cosmos/Codebreaker.Data.Cosmos.csproj index 9aa06197..fc2f87cb 100644 --- a/src/services/gameapi/Codebreaker.Data.Cosmos/Codebreaker.Data.Cosmos.csproj +++ b/src/services/gameapi/Codebreaker.Data.Cosmos/Codebreaker.Data.Cosmos.csproj @@ -17,8 +17,8 @@ - - + + diff --git a/src/services/gameapi/Codebreaker.Data.Cosmos/Usings.cs b/src/services/gameapi/Codebreaker.Data.Cosmos/GlobalUsings.cs similarity index 100% rename from src/services/gameapi/Codebreaker.Data.Cosmos/Usings.cs rename to src/services/gameapi/Codebreaker.Data.Cosmos/GlobalUsings.cs diff --git a/src/services/gameapi/Codebreaker.Data.SqlServer.Tests/Codebreaker.Data.SqlServer.Tests.csproj b/src/services/gameapi/Codebreaker.Data.SqlServer.Tests/Codebreaker.Data.SqlServer.Tests.csproj index f20e1225..5d2411b5 100644 --- a/src/services/gameapi/Codebreaker.Data.SqlServer.Tests/Codebreaker.Data.SqlServer.Tests.csproj +++ b/src/services/gameapi/Codebreaker.Data.SqlServer.Tests/Codebreaker.Data.SqlServer.Tests.csproj @@ -10,13 +10,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/services/gameapi/Codebreaker.Data.SqlServer/Codebreaker.Data.SqlServer.csproj b/src/services/gameapi/Codebreaker.Data.SqlServer/Codebreaker.Data.SqlServer.csproj index 909a0a68..13ad4302 100644 --- a/src/services/gameapi/Codebreaker.Data.SqlServer/Codebreaker.Data.SqlServer.csproj +++ b/src/services/gameapi/Codebreaker.Data.SqlServer/Codebreaker.Data.SqlServer.csproj @@ -18,8 +18,8 @@ - - + + diff --git a/src/services/gameapi/Codebreaker.Data.SqlServer/Usings.cs b/src/services/gameapi/Codebreaker.Data.SqlServer/GlobalUsings.cs similarity index 100% rename from src/services/gameapi/Codebreaker.Data.SqlServer/Usings.cs rename to src/services/gameapi/Codebreaker.Data.SqlServer/GlobalUsings.cs