Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Checks: >
clang-analyzer-*,
-clang-analyzer-security.ArrayBound,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
bugprone-*,
-bugprone-multi-level-implicit-pointer-conversion,
Expand All @@ -9,6 +10,7 @@ Checks: >
concurrency-*,
-concurrency-mt-unsafe,
misc-*,
-misc-include-cleaner,
performance-*,
portability-*,
readability-*,
Expand Down
44 changes: 39 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install toolchain
run: |
sudo apt-get update
sudo apt-get install -y clang clang-format clang-tidy gcovr llvm ninja-build python3-venv valgrind
sudo apt-get install -y clang clang-format clang-tidy ninja-build python3-venv valgrind
python3 -m venv "$RUNNER_TEMP/meson-venv"
"$RUNNER_TEMP/meson-venv/bin/pip" install 'meson>=1.6'
echo "$RUNNER_TEMP/meson-venv/bin" >> "$GITHUB_PATH"
Expand All @@ -32,13 +32,15 @@ jobs:
run: sh scripts/check-format.sh
- name: Clang tidy
run: sh scripts/run-clang-tidy.sh build-tidy
- name: Coverage
run: sh scripts/coverage.sh build-coverage
- name: CLI smoke
run: ./build/sync-kgraph-cli --example office
run: ./build/sync-kgraph-cli --example warehouse

memgraph-module-compile:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
memgraph-version: ['3.1.1', '3.7.0', '3.11.0']
steps:
- uses: actions/checkout@v4
- name: Install toolchain
Expand All @@ -55,7 +57,7 @@ jobs:
- name: Fetch Memgraph C API header
run: |
mkdir -p third_party/memgraph/include
curl -L https://raw.githubusercontent.com/memgraph/memgraph/v3.11.0/include/mg_procedure.h \
curl -L https://raw.githubusercontent.com/memgraph/memgraph/v${{ matrix.memgraph-version }}/include/mg_procedure.h \
-o third_party/memgraph/include/mg_procedure.h
- name: Build module
run: |
Expand All @@ -64,6 +66,38 @@ jobs:
-Dmemgraph_include_dir="$PWD/third_party/memgraph/include"
ninja -C build-memgraph
- name: Clang tidy module
if: matrix.memgraph-version == '3.11.0'
run: sh scripts/run-clang-tidy.sh build-memgraph-tidy "$PWD/third_party/memgraph/include"
- name: Memgraph smoke
if: matrix.memgraph-version == '3.11.0'
run: sh scripts/memgraph_smoke.sh build-memgraph

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install toolchain
run: |
sudo apt-get update
sudo apt-get install -y clang curl gcovr llvm ninja-build python3-venv
python3 -m venv "$RUNNER_TEMP/meson-venv"
"$RUNNER_TEMP/meson-venv/bin/pip" install 'meson>=1.6'
echo "$RUNNER_TEMP/meson-venv/bin" >> "$GITHUB_PATH"
- name: Fetch Memgraph C API header
run: |
mkdir -p third_party/memgraph/include
curl -L https://raw.githubusercontent.com/memgraph/memgraph/v3.11.0/include/mg_procedure.h \
-o third_party/memgraph/include/mg_procedure.h
- name: Full production coverage
env:
SYNC_KGRAPH_COVERAGE_RUNNER: docker
run: sh scripts/coverage.sh build-coverage "$PWD/third_party/memgraph/include"
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: |
build-coverage/coverage.xml
build-coverage/coverage.html
build-coverage/coverage.*.html
Loading
Loading