From dd3825ead20952d0ed4eb32416334607f2df829b Mon Sep 17 00:00:00 2001 From: Cristovao Cordeiro Date: Wed, 11 Dec 2024 18:18:58 +0100 Subject: [PATCH] test: tics --- .github/workflows/tics.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tics.yml b/.github/workflows/tics.yml index 03621cd5..c58348d9 100644 --- a/.github/workflows/tics.yml +++ b/.github/workflows/tics.yml @@ -99,11 +99,24 @@ jobs: - run: go install honnef.co/go/tools/cmd/staticcheck@latest - - name: Run TiCS analysis + - name: Run TiCS client analysis uses: tiobe/tics-github-action@v3 + if: github.event_name == 'pull_request' + with: + mode: 'client' + codetype: 'TESTCODE' + project: chisel + filelist: ${{ env.TICS_FILELIST }} + viewerUrl: 'https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default' + displayUrl: 'https://canonical.tiobe.com/tiobeweb/TICS' + installTics: true + + - name: Run TiCS server analysis + uses: tiobe/tics-github-action@v3 + if: github.event_name != 'pull_request' with: - mode: ${{ github.event_name == 'pull_request' && 'client' || 'qserver' }} - codetype: ${{ github.event_name == 'pull_request' && 'TESTCODE' || 'PRODUCTION' }} + mode: 'qserver' + codetype: 'PRODUCTION' project: chisel branchdir: . filelist: ${{ env.TICS_FILELIST }}