From df78d93526dab755c84ee585a609046cc4552e20 Mon Sep 17 00:00:00 2001 From: Diego Herrera Date: Mon, 4 Oct 2021 15:33:58 -0600 Subject: [PATCH] Added Code Analysis --- .github/workflows/manual.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 0000000..45855ba --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,25 @@ +# This is a basic workflow that is manually triggered + +name: Code Analysis + +on: [push] + +jobs: + check-quality: + runs-on: ubuntu-latest + name: A job to check my code quality + steps: + - name: Check code meets quality standards + id: code-inspector + uses: codeinspectorio/github-action@master + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + code_inspector_access_key: ${{ secrets.CODE_INSPECTOR_ACCESS_KEY }} + code_inspector_secret_key: ${{ secrets.CODE_INSPECTOR_SECRET_KEY }} + min_quality_grade: 'WARNING' + min_quality_score: '80' + max_defects_rate: '0.0001' + max_complex_functions_rate: '0.0001' + max_long_functions_rate: '0.0001' + project_name: '' + max_timeout_sec: '600'