diff --git a/.github/workflows/compile-bot.yml b/.github/workflows/bot.yml similarity index 74% rename from .github/workflows/compile-bot.yml rename to .github/workflows/bot.yml index 5338dbe..f391b63 100644 --- a/.github/workflows/compile-bot.yml +++ b/.github/workflows/bot.yml @@ -1,7 +1,7 @@ # This workflow will build a .NET project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net -name: Compile bot +name: C# bot on: push: @@ -18,9 +18,8 @@ defaults: jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v3 with: @@ -35,3 +34,13 @@ jobs: Bot/bin/Release/net8.0/linux-arm64/Bot Bot/bin/Release/net8.0/linux-arm64/*.dll Bot/bin/Release/net8.0/linux-arm64/*.json + inspect: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Inspect + uses: muno92/resharper_inspectcode@v1 + with: + workingDirectory: './Bot' + solutionPath: './Bot.sln' + noBuild: true diff --git a/.github/workflows/resharper-inspect.yml b/.github/workflows/resharper-inspect.yml deleted file mode 100644 index e7e2126..0000000 --- a/.github/workflows/resharper-inspect.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Inspect code - -on: - push: - branches: [ "main", "debug-workflow" ] - paths: ["**.cs"] - pull_request: - branches: [ "main" ] - paths: ["**.cs"] - -defaults: - run: - working-directory: ./Bot - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Inspect - uses: muno92/resharper_inspectcode@v1 - with: - solutionPath: './Bot.sln' - noBuild: true \ No newline at end of file diff --git a/Bot/Sql/Db.cs b/Bot/Sql/Db.cs index 4474ae4..6fb2de5 100644 --- a/Bot/Sql/Db.cs +++ b/Bot/Sql/Db.cs @@ -1,9 +1,8 @@ using SQLite; -namespace Hyperstellar.Sql +namespace Hyperstellar.Sql; + +internal class Db { - internal class Db - { - private static readonly SQLiteConnection _db = new("Hyperstellar.db"); - } + private static readonly SQLiteConnection _db = new("Hyperstellar.db"); }