diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 742afd9..eb4ad75 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -2,15 +2,14 @@ name: Check style on: push: - branches-ignore: - - gh-readonly-queue/** - - master pull_request: merge_group: jobs: check-style: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 + strategy: + fail-fast: false steps: - uses: actions/checkout@v4 with: @@ -18,14 +17,10 @@ jobs: - name: Prepare run: | sudo apt-get update -y - sudo apt-get install -y pkg-config cmake cmake build-essential shellcheck - - name: Install clang-format + sudo apt-get install -y pkg-config cmake cmake build-essential shellcheck clang-format + - name: Check clang format version run: | - wget https://apt.llvm.org/llvm.sh - chmod +x llvm.sh - sudo ./llvm.sh 19 - sudo apt-get install clang-format-19 - clang-format -version + clang-format -version # expect 10 - name: Check fix_style run: scripts/fix_style.py --dry-run # - name: Shellcheck diff --git a/src/server/set_state.h b/src/server/set_state.h index f7b2284..3cbfcf2 100644 --- a/src/server/set_state.h +++ b/src/server/set_state.h @@ -17,6 +17,6 @@ void SetState(const CCharacter *pChr, CServerBotStateIn *pState) pState->m_VelY = pChr->Core()->m_Vel.y; } -} +} // namespace TWBL #endif diff --git a/src/test/sample.cpp b/src/test/sample.cpp index 439828f..b9cb5c8 100644 --- a/src/test/sample.cpp +++ b/src/test/sample.cpp @@ -17,4 +17,3 @@ int main() EXPECT_STREQ(Bot.m_pDirFunction, "SampleTick"); EXPECT_EQ(Bot.m_DirLine, 9); } -