mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-30 04:41:49 +00:00
48669be618
Summary: Recent Github actions of format checking fail due to invalid location from where clang-format-diff.py is downloaded. Update the path to point to a stable, archived location. Pull Request resolved: https://github.com/facebook/rocksdb/pull/7944 Test Plan: manually check the result of Github action. Reviewed By: ltamasi Differential Revision: D26345066 Pulled By: riversand963 fbshipit-source-id: 2b1a58c2e59c2f1eb11202d321d2ea002cb0917e
42 lines
1.1 KiB
YAML
42 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
|
|
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/main/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
|