Skip to content

Commit

Permalink
SQUASH: use smay1613/clang-tidy-action
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Feb 29, 2024
1 parent 4880094 commit 87990a6
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
name: cppcheck-action-test
on: [push]
name: c-linter

on: [pull_request]
jobs:
build:
name: cppcheck-test
c-linter:
name: c-linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- 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/}
- name: c-linter
uses: smay1613/clang-tidy-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 87990a6

Please sign in to comment.