thorvg/.github/workflows/actions_cpplint.yml
JunsuChoi 6a4598f706 infra coding_style: Add coding style check bot
Add a bot that checks the coding style using cpplint
and reports the result as a review comment.

This feature refers to the repository where cpplint
and docker settings with github-action.
This action works whenever a PR is created and updated.

In cpplint, only the violation of ThorVG's coding style is reported
as a warning using several options.
whitespace/parens
whitespace/indent
whitespace/end_of_line
whitespace/blank_line

The bot will review all of the contents of all files in the current commit file list,
However, in the future, we will improve Bot to only review the changes.
2021-02-18 14:00:21 +09:00

33 lines
803 B
YAML

name: PullRequest_Checker
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install curl
sudo apt-get install cmake jq clang
sudo apt-get install software-properties-common
sudo apt-get install python3-pip
pip3 install wheel --user
pip3 install cpplint --user
- name: Run Cpplint Script
run: |
export PATH=$PATH:~/.local/bin/
chmod +x "${GITHUB_WORKSPACE}/.github/workflows/cpp_lint_check.sh"
"${GITHUB_WORKSPACE}/.github/workflows/cpp_lint_check.sh"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}