From 385fc79349fc09f32d009ec45abfd88eb44f1bc1 Mon Sep 17 00:00:00 2001 From: Di WANG Date: Tue, 24 Oct 2023 00:01:08 -0700 Subject: [PATCH 1/2] try action --- .github/workflows/cppcheck.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/cppcheck.yml diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml new file mode 100644 index 0000000..a2d84c3 --- /dev/null +++ b/.github/workflows/cppcheck.yml @@ -0,0 +1,21 @@ +name: cppcheck-action-test +on: [push] + +jobs: + build: + name: cppcheck-test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: cppcheck + uses: deep5050/cppcheck-action@main + with: + github_token: ${{ secrets.GITHUB_TOKEN}} + + + - name: publish report + uses: mikeal/publish-to-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH_NAME: 'main' # your branch name goes here From 5ef28549248c0e41ccf47d2ef0686f3ada3088ba Mon Sep 17 00:00:00 2001 From: Di WANG Date: Tue, 24 Oct 2023 00:03:38 -0700 Subject: [PATCH 2/2] try action style check --- .github/workflows/cppcheck.yml | 21 --------------------- .github/workflows/cppstylecheck.yml | 3 +++ 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/cppcheck.yml create mode 100644 .github/workflows/cppstylecheck.yml diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml deleted file mode 100644 index a2d84c3..0000000 --- a/.github/workflows/cppcheck.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: cppcheck-action-test -on: [push] - -jobs: - build: - name: cppcheck-test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: cppcheck - uses: deep5050/cppcheck-action@main - with: - github_token: ${{ secrets.GITHUB_TOKEN}} - - - - name: publish report - uses: mikeal/publish-to-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH_NAME: 'main' # your branch name goes here diff --git a/.github/workflows/cppstylecheck.yml b/.github/workflows/cppstylecheck.yml new file mode 100644 index 0000000..bf49c26 --- /dev/null +++ b/.github/workflows/cppstylecheck.yml @@ -0,0 +1,3 @@ + - name: C++ Style Check + uses: coleaeason/actions-uncrustify@v1 +