summaryrefslogtreecommitdiffstats
path: root/src/rocksdb/.github/workflows/sanity_check.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/rocksdb/.github/workflows/sanity_check.yml
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/rocksdb/.github/workflows/sanity_check.yml')
-rw-r--r--src/rocksdb/.github/workflows/sanity_check.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/rocksdb/.github/workflows/sanity_check.yml b/src/rocksdb/.github/workflows/sanity_check.yml
new file mode 100644
index 000000000..6ee53ce1b
--- /dev/null
+++ b/src/rocksdb/.github/workflows/sanity_check.yml
@@ -0,0 +1,47 @@
+name: Check buck targets and code format
+on: [push, pull_request]
+permissions:
+ contents: read
+
+jobs:
+ check:
+ name: Check TARGETS file and code format
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout feature branch
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ - name: Fetch from upstream
+ run: |
+ git remote add upstream https://github.com/facebook/rocksdb.git && git fetch upstream
+
+ - name: Where am I
+ run: |
+ echo git status && git status
+ echo "git remote -v" && git remote -v
+ echo git branch && git branch
+
+ - name: Setup Python
+ uses: actions/setup-python@v1
+
+ - name: Install Dependencies
+ run: python -m pip install --upgrade pip
+
+ - name: Install argparse
+ run: pip install argparse
+
+ - name: Download clang-format-diff.py
+ uses: wei/wget@v1
+ with:
+ args: https://raw.githubusercontent.com/llvm/llvm-project/release/12.x/clang/tools/clang-format/clang-format-diff.py
+
+ - name: Check format
+ run: VERBOSE_CHECK=1 make check-format
+
+ - name: Compare buckify output
+ run: make check-buck-targets
+
+ - name: Simple source code checks
+ run: make check-sources