Skip to content

Commit

Permalink
Merge pull request #184 from CodebreakerApp/179-cleanup_libs
Browse files Browse the repository at this point in the history
179 cleanup libs
  • Loading branch information
christiannagel authored May 27, 2024
2 parents c71fb83 + 58cb634 commit 9ef6f1d
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 8 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/codebreaker-lib-cosmos-stable.yml
Original file line number Diff line number Diff line change
@@ -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
55 changes: 55 additions & 0 deletions .github/workflows/codebreaker-lib-sqlserver-stable.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CNinnovation.Codebreaker.BackendModels" Version="3.6.0-beta.22" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" Version="8.0.1" />
<PackageReference Include="CNinnovation.Codebreaker.BackendModels" Version="3.7.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Cosmos" Version="8.0.5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CNinnovation.Codebreaker.BackendModels" Version="3.6.0-beta.20" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />
<PackageReference Include="CNinnovation.Codebreaker.BackendModels" Version="3.7.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.5" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 9ef6f1d

Please sign in to comment.