rocksdb/.github/workflows/sanity_check.yml
2020-04-29 10:57:38 -07:00

45 lines
1.1 KiB
YAML

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
- 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
- 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-mirror/clang/master/tools/clang-format/clang-format-diff.py
- name: Found merge base
run: git merge-base upstream/master HEAD
- name: Check format 1
run: |
build_tools/format-diff.sh -c
- name: Check format
run: make check-format
- name: Compare buckify output
run: make check-buck-targets