Skip to content

Commit

Permalink
Reorganize (#11)
Browse files Browse the repository at this point in the history
* Reorganize all files

* Update workflows
  • Loading branch information
MSWS authored Sep 8, 2024
1 parent 8e8185e commit ee3f322
Show file tree
Hide file tree
Showing 127 changed files with 35 additions and 70 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ on:
push:
branches: [ "main", "dev" ]
paths:
- 'Gangs*/**'
- '.github/workflows/nightly.yml'
- 'Core/**'
- 'Commands/**'
- 'src/**'
- '.github/workflows/codeql.yml'
pull_request:
branches: [ "main" ]
paths:
- 'Gangs*/**'
- '.github/workflows/nightly.yml'
- 'Core/**'
- 'Commands/**'
- 'src/**'
- '.github/workflows/codeql.yml'
schedule:
- cron: '34 12 * * 6'

Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ name: Build / Test
on:
push:
paths:
- 'Gangs*/**'
- 'src/**'
- '.github/workflows/dotnet.yml'
- 'Core/**'
- 'Commands/**'
- 'coverage.runsettings'
pull_request:
paths:
- 'Gangs*/**'
- 'src/**'
- '.github/workflows/dotnet.yml'
- 'Core/**'
- 'Commands/**'
- 'coverage.runsettings'

jobs:
Expand Down Expand Up @@ -84,16 +80,16 @@ jobs:
- name: Test with MariaDB
env:
DB_GANGS_CONNECTION: "Server=localhost;Port=3307;Database=gangs;User=root"
run: dotnet test GangsTest/GangsTest.csproj --no-build --verbosity normal
run: dotnet test src/GangsTest/GangsTest.csproj --no-build --verbosity normal
- name: Test with MySQL
env:
DB_GANGS_CONNECTION: "Server=localhost;Port=3306;Database=gangs;User=root"
run: dotnet test GangsTest/GangsTest.csproj --no-build --verbosity normal
run: dotnet test src/GangsTest/GangsTest.csproj --no-build --verbosity normal
- name: Generate Code Coverage Report
env:
DB_GANGS_CONNECTION: "Server=localhost;Port=3306;Database=gangs;User=root"
if: ${{ matrix.dotnet-version == '9.0.x' }}
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --logger trx --results-directory coverage GangsTest/GangsTest.csproj --settings coverage.runsettings
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --logger trx --results-directory coverage src/GangsTest/GangsTest.csproj --settings coverage.runsettings
- name: Code Coverage Summary Report
uses: irongut/[email protected]
if: ${{ matrix.dotnet-version == '9.0.x' }}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ name: Nightly

on:
workflow_run:
workflows: [ "Build / Test" ]
workflows: [ Build / Test ]
branches: [ "dev", "main" ]
types: [ "completed" ]
types:
- completed
push:
branches:
- dev
Expand All @@ -17,6 +18,7 @@ on:

jobs:
build:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,8 +34,8 @@ jobs:

- run: |
dotnet restore
dotnet build Gangs/Gangs.csproj --no-restore
dotnet publish Gangs/Gangs.csproj --no-build --no-restore
dotnet build src/CS2/Gangs/Gangs.csproj --no-restore
dotnet publish src/CS2/Gangs/Gangs.csproj --no-build --no-restore
- uses: actions/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:

- run: |
dotnet restore
dotnet build Core/Core.csproj --no-restore
dotnet publish Core/Core.csproj --no-build --no-restore
dotnet build src/CS2/Gangs/Gangs.csproj --no-restore
dotnet publish src/CS2/Gangs/Gangs.csproj --no-build --no-restore
- uses: actions/[email protected]
with:
Expand Down
20 changes: 10 additions & 10 deletions Gangs.sln
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GangsAPI", "GangsAPI\GangsAPI.csproj", "{787D12D8-1310-4042-ADCE-102E517F269E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GangsAPI", "src\GangsAPI\GangsAPI.csproj", "{787D12D8-1310-4042-ADCE-102E517F269E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gangs", "Gangs\Gangs.csproj", "{3EA38296-9022-4874-8309-872388D884DE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gangs", "src\CS2\Gangs\Gangs.csproj", "{3EA38296-9022-4874-8309-872388D884DE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GangsTest", "GangsTest\GangsTest.csproj", "{B1D1E7C7-BDF3-4238-9025-4FEB2B7DAB89}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GangsTest", "src\GangsTest\GangsTest.csproj", "{B1D1E7C7-BDF3-4238-9025-4FEB2B7DAB89}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mock", "GangsImpl\Mock\Mock.csproj", "{140E1706-30E8-4440-AAA0-56E8DD32F054}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mock", "src\GangsImpl\Mock\Mock.csproj", "{140E1706-30E8-4440-AAA0-56E8DD32F054}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GangsImpl", "GangsImpl", "{3AB7703F-880F-4A41-96EE-B891FA888C65}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GangsImpl", "src\GangsImpl", "{3AB7703F-880F-4A41-96EE-B891FA888C65}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySQL", "GangsImpl\MySQL\MySQL.csproj", "{1899055E-62B8-4907-85A2-DFE22531729E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySQL", "src\GangsImpl\MySQL\MySQL.csproj", "{1899055E-62B8-4907-85A2-DFE22531729E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AbstractDB", "GangsImpl\AbstractDB\AbstractDB.csproj", "{74B15261-4B12-4EF6-859A-E46B315E7DD3}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AbstractDB", "src\GangsImpl\AbstractDB\AbstractDB.csproj", "{74B15261-4B12-4EF6-859A-E46B315E7DD3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite", "GangsImpl\SQLite\SQLite.csproj", "{5186EA9C-D2A4-4D70-8F52-0D6C7B6A61B6}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLite", "src\GangsImpl\SQLite\SQLite.csproj", "{5186EA9C-D2A4-4D70-8F52-0D6C7B6A61B6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CS2", "CS2", "{AC07CD29-5C9D-4AD1-99C7-01DABAB8D0EC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands", "Commands\Commands.csproj", "{C7DF1D47-8D2B-4651-98AB-AEEBE5860ECA}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands", "src\CS2\Commands\Commands.csproj", "{C7DF1D47-8D2B-4651-98AB-AEEBE5860ECA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stats", "GangsImpl\Stats\Stats.csproj", "{BA8D993B-754E-4BB4-B103-482A4F779404}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stats", "src\GangsImpl\Stats\Stats.csproj", "{BA8D993B-754E-4BB4-B103-482A4F779404}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SQL", "SQL", "{32D392D5-C809-45A1-A5FB-58C941D86057}"
EndProject
Expand Down
13 changes: 0 additions & 13 deletions GangsImpl/Mock/.idea/.idea.Mock.dir/.idea/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions GangsImpl/Mock/.idea/.idea.Mock.dir/.idea/encodings.xml

This file was deleted.

8 changes: 0 additions & 8 deletions GangsImpl/Mock/.idea/.idea.Mock.dir/.idea/indexLayout.xml

This file was deleted.

6 changes: 0 additions & 6 deletions GangsImpl/Mock/.idea/.idea.Mock.dir/.idea/vcs.xml

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Commands/Commands.csproj → src/CS2/Commands/Commands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\GangsAPI\GangsAPI.csproj"/>
<ProjectReference Include="..\GangsImpl\Mock\Mock.csproj"/>
<ProjectReference Include="..\..\GangsAPI\GangsAPI.csproj" />
<ProjectReference Include="..\..\GangsImpl\Mock\Mock.csproj" />
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Gangs/Gangs.csproj → src/CS2/Gangs/Gangs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ItemGroup>
<ProjectReference Include="..\Commands\Commands.csproj"/>
<ProjectReference Include="..\GangsAPI\GangsAPI.csproj"/>
<ProjectReference Include="..\GangsImpl\MySQL\MySQL.csproj"/>
<ProjectReference Include="..\..\GangsAPI\GangsAPI.csproj"/>
<ProjectReference Include="..\..\GangsImpl\MySQL\MySQL.csproj"/>
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using GangsAPI.Data;
using Commands;
using GangsAPI.Data;
using GangsAPI.Services.Commands;

namespace GangsTest.API.Services.Commands.Command;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\CS2\Commands\Commands.csproj" />
<ProjectReference Include="..\GangsImpl\Mock\Mock.csproj"/>
<ProjectReference Include="..\GangsImpl\SQLite\SQLite.csproj"/>
<ProjectReference Include="..\GangsImpl\MySQL\MySQL.csproj"/>
<ProjectReference Include="..\GangsImpl\Stats\Stats.csproj"/>
<ProjectReference Include="..\Gangs\Gangs.csproj"/>
<ProjectReference Include="..\CS2\Gangs\Gangs.csproj"/>
</ItemGroup>

</Project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ee3f322

Please sign in to comment.