From ef18e9a1541d8f4d20bb26eb83cd8cc614ea6309 Mon Sep 17 00:00:00 2001 From: Sergio Cazzolato Date: Fri, 17 May 2024 09:24:27 -0300 Subject: [PATCH] tests: run static analysis for prs in self-hosted runners (#13855) * tests: run static analysis for prs in self-hosted runners With this change the prs will run static analysis * update the static analysis workflow * change job name to tiobe-static-analysis --- .github/workflows/static-analysis.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/static-analysis.yaml diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml new file mode 100644 index 00000000000..ca4d9a40e46 --- /dev/null +++ b/.github/workflows/static-analysis.yaml @@ -0,0 +1,14 @@ +name: "Static code analysis" +on: [pull_request] + +jobs: + tiobe-static-analysis: + runs-on: self-hosted + steps: + - uses: actions/checkout@v4 + - name: TICS GitHub Action + uses: tiobe/tics-github-action@v2 + with: + projectName: snapd + ticsConfiguration: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default + installTics: true