Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,modernize-*,bugprone-*'
WarningsAsErrors: false
HeaderFilterRegex: '^((?!/external/|/bazel-.*/).)*$'
AnalyzeTemporaryDtors: false
FormatStyle: file
CheckOptions: {}
...

18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,22 @@ concurrency:
cancel-in-progress: true

jobs:
formatting-check:
name: Formatting Check
linter:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jidicula/clang-format-action@v4.9.0
with: { clang-format-version: "15" }
- run: 'bazel --bazelrc=.bazelrc --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc build //... -k'
- run: 'bazel --bazelrc=.bazelrc --bazelrc=$GITHUB_WORKSPACE/.github/workflows/ci.bazelrc run @hedron_compile_commands//:refresh_all'
- uses: cpp-linter/cpp-linter-action@77982d55693d154611fbb8b1304a447c44ae6f2d
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
version: 16
files-changed-only: false
database: '.'

test-windows:
runs-on: windows-latest
steps:
Expand All @@ -31,6 +40,7 @@ jobs:
- run: bazel --bazelrc=.bazelrc --bazelrc=.github/workflows/ci-windows.bazelrc test //...
test-linux:
runs-on: ubuntu-latest
needs: linter
steps:
- uses: actions/checkout@v3
- name: Mount bazel caches
Expand Down