Skip to content

Add code quality checks #21

Add code quality checks

Add code quality checks #21

Workflow file for this run

name: cppcheck
on: [pull_request]
jobs:
build:
name: cppcheck-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
- name: Print current branch
run: echo "Current branch is ${{ github.ref }}"
- name: Print current branch
run: echo "Current branch is ${GITHUB_REF#refs/heads/}"
- name: publish report
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: ${GITHUB_REF#refs/heads/}