#fix REQREPLY-221: Update RPC examples #517
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ source code lint | |
defaults: | |
run: | |
shell: bash | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
- release/* | |
paths: | |
- '**/*.[ch]x?x?' | |
- '**/*.java' | |
jobs: | |
lint-sourcecode: | |
runs-on: ubuntu-20.04 | |
name: Lint job | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Add scripts to the PATH | |
run: echo "${{ github.workspace }}/resources/ci_cd/" >> $GITHUB_PATH | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install necessary tools | |
run: pip install clang-format==13.0.0 | |
- name: Perform linting | |
working-directory: ${{ github.workspace }} | |
run: | | |
base_commit="${{ github.event.pull_request.base.sha }}" | |
head_commit="${{ github.event.pull_request.head.sha }}" | |
linux_format.py -md -py -r "${base_commit}...${head_commit}" |