mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-21 23:41:19 +00:00

When we do 1.0 release, we clean up the coding style of all codes. Currently, there are limitations in our coding style and lint settings. This results in unnecessary bot comments.
34 lines
843 B
YAML
34 lines
843 B
YAML
name: Check Commit
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
coding-style:
|
|
if: ${{ false }} # disable for now
|
|
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 }}
|
|
|