From 392c4c852c4c1a7ba09ef12ec74e7452f630fe43 Mon Sep 17 00:00:00 2001 From: Whisperity Date: Sat, 27 Nov 2021 11:18:56 +0100 Subject: [PATCH] Initial commit: My first action! --- .github/workflows/test.yml | 16 ++++++++++++++++ LICENSE | 7 +++++++ README.md | 15 +++++++++++++++ action.yml | 15 +++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 action.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..88bd0e8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +name: 'Action test' + +on: + push: + branches: + - master + +jobs: + ubuntu_2004: + name: "Ubuntu Linux 20.04" + runs-on: ubuntu-20.04 + steps: + - name: "Test action" + uses: whisperity/codechecker-analysis-action@master + with: + version: "test" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d5eb54c --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2021 Whisperity + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..0ab3690 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# [CodeChecker](http://github.com/Ericsson/CodeChecker/) C++ static analysis action + +GitHub Action to execute static analysis over C-family projects (C, C++, +Objective-C) using the [Clang](http://clang.llvm.org/) infrastructure and +[CodeChecker](http://github.com/Ericsson/CodeChecker/) as its driver. + +## Overview + + + +## Action configuration + +~~~{.yaml} + +~~~ diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..481601b --- /dev/null +++ b/action.yml @@ -0,0 +1,15 @@ +name: 'CodeChecker Static Analysis' +author: 'Whisperity' +description: 'Execute C/C++ static analysis of LLVM/Clang (Clang Static Analyzer and Clang-Tidy) driven via CodeChecker.' +inputs: + version: + description: 'The version of the CodeChecker suite to obtain and execute. Might be a Git commit SHA, a branch name, or a tag.' + required: true + default: 'master' +runs: + using: "composite" + steps: + - name: "Test" + run: | + echo "Foo" + echo ${{ inputs.version }}