@@ -41,15 +41,13 @@ jobs:
4141 run : dotnet --info
4242
4343 - name : Restore dependencies
44- run : dotnet restore --verbosity minimal
45- working-directory : ./src
44+ run : dotnet restore BinanceBot.sln --verbosity minimal
4645
4746 - name : Build
48- run : dotnet build --no-restore --configuration ${{ matrix.configuration }} --nologo
49- working-directory : ./src
47+ run : dotnet build BinanceBot.sln --no-restore --configuration ${{ matrix.configuration }} --nologo
5048
5149 - name : Test
52- run : dotnet test --no-build --configuration ${{ matrix.configuration }} --collect:"XPlat Code Coverage" --logger "trx;LogFileName=test_results.trx"
50+ run : dotnet test BinanceBot.sln --no-build --configuration ${{ matrix.configuration }} --collect:"XPlat Code Coverage" --logger "trx;LogFileName=test_results.trx"
5351
5452 - name : Upload test results
5553 if : always()
@@ -72,22 +70,21 @@ jobs:
7270 - name : Publish artifacts (Release only)
7371 if : matrix.configuration == 'Release'
7472 run : |
75- dotnet publish BinanceBot.MarketBot.Console/BinanceBot.MarketBot.Console.csproj \
73+ dotnet publish src/ BinanceBot.MarketBot.Console/BinanceBot.MarketBot.Console.csproj \
7674 -c Release \
7775 -o ./publish/MarketBot \
7876 --no-build
79- dotnet publish BinanceBot.MarketViewer.Console/BinanceBot.MarketViewer.Console.csproj \
77+ dotnet publish src/ BinanceBot.MarketViewer.Console/BinanceBot.MarketViewer.Console.csproj \
8078 -c Release \
8179 -o ./publish/MarketViewer \
8280 --no-build
83- working-directory : ./src
8481
8582 - name : Upload published artifacts
8683 if : matrix.configuration == 'Release'
8784 uses : actions/upload-artifact@v4
8885 with :
8986 name : binance-bot-binaries
9087 path : |
91- src/ publish/MarketBot/
92- src/ publish/MarketViewer/
88+ publish/MarketBot/
89+ publish/MarketViewer/
9390 retention-days : 7
0 commit comments