SFMLの本番ビルド対応 #91
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: cppcheck | |
on: [pull_request] | |
env: | |
WORKSPACE: ${{ github.workspace }} | |
jobs: | |
cppcheck: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup cppcheck | |
run: | | |
sudo apt-get update | |
sudo apt-get install cppcheck | |
- name: Run cppcheck | |
run: | | |
cd ${{ env.WORKSPACE }} | |
cppcheck --enable=all --output-file=cppcheck-result.txt --force --quiet -I Library Projects | |
- name: Setup reviewdog | |
uses: reviewdog/action-setup@80a06617492b461a66508e2dedf16233f0506804 | |
- name: Comment GitHub Pull Request | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cat cppcheck-result.txt | grep "\bwarning: " | reviewdog -efm="%f:%l:%c:%m" -reporter=github-pr-review -name="cppcheck-warning" | |
cat cppcheck-result.txt | grep "\berror: " | reviewdog -efm="%f:%l:%c:%m" -reporter=github-pr-review -name="cppcheck-error" |