Update dotnet monorepo #1506
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: format | |
| on: | |
| push: | |
| branches: [dev, main, master] | |
| pull_request: | |
| branches: [dev, main, master] | |
| jobs: | |
| clang-format-checking: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DoozyX/clang-format-lint-action@v0.20 | |
| with: | |
| source: '.' | |
| extensions: 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx,i,ixx,ipp,i++' | |
| clangFormatVersion: 14 | |
| exclude: './players ./CAPI/cpp/grpc/include ./CAPI/cpp/proto ./CAPI/cpp/tclap/include/tclap ./dependency/proto ./CAPI/cpp/spdlog/include/spdlog ./CAPI/cpp/fmt ./CAPI/cpp/API/include/structures.h ./CAPI/cpp/API/include/utils.hpp ./CAPI/cpp/API/src/AI.cpp ./CAPI/cpp/API/src/API.cpp ./CAPI/cpp/API/src/DebugAPI.cpp' | |
| inplace: False | |
| dotnet-format-checking: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Check Logic | |
| run: | | |
| dotnet restore "./logic/logic.sln" | |
| dotnet format "./logic/logic.sln" --severity error --no-restore --verify-no-changes | |
| - name: Check Installer | |
| run: | | |
| dotnet restore "./installer/installer.sln" | |
| dotnet format "./installer/installer.sln" --severity error --no-restore --verify-no-changes | |
| - name: Check Playback | |
| run: | | |
| dotnet restore "./playback/playback.sln" | |
| dotnet format "./playback/playback.sln" --severity error --no-restore --verify-no-changes | |
| - name: Check Interface | |
| run: | | |
| dotnet format whitespace "./interface/Unity/interface-live/Assets/Scripts/" --folder --verify-no-changes |