2020-05-01 02:20:55 +00:00
|
|
|
name: Check buck targets and code format
|
|
|
|
on: [push, pull_request]
|
|
|
|
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:
|
2022-03-01 18:51:38 +00:00
|
|
|
args: https://raw.githubusercontent.com/llvm/llvm-project/release/12.x/clang/tools/clang-format/clang-format-diff.py
|
2020-05-01 02:20:55 +00:00
|
|
|
|
|
|
|
- name: Check format
|
2020-05-21 15:10:43 +00:00
|
|
|
run: VERBOSE_CHECK=1 make check-format
|
2020-05-01 02:20:55 +00:00
|
|
|
|
|
|
|
- name: Compare buckify output
|
|
|
|
run: make check-buck-targets
|
2021-09-08 04:18:21 +00:00
|
|
|
|
|
|
|
- name: Simple source code checks
|
|
|
|
run: make check-sources
|