From 9e67b4c82fce2885e57a69831603bc6d331d9bb2 Mon Sep 17 00:00:00 2001 From: David Edler Date: Thu, 29 Feb 2024 17:27:18 +0100 Subject: [PATCH] chore(metrics) update tics after code coverage is produced Signed-off-by: David Edler --- .github/workflows/coverage.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index e9b0408848..0efc39e2d2 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -134,3 +134,27 @@ jobs: run: | FULL_HTML_REPORT_URL=https://canonical.github.io/lxd-ui/coverage echo "::notice title=Published Playwright Test Report::$FULL_HTML_REPORT_URL" + + + tics-report: + runs-on: ubuntu-latest + needs: publish-coverage-report + steps: + - uses: actions/checkout@v4 + + - name: Produce TICS report + shell: bash + run: | + set -x + export TICSAUTHTOKEN=${{ secrets.TICS_AUTH_TOKEN }} + curl --silent --show-error "https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/" > install_tics.sh + . ./install_tics.sh + TICSQServer -project lxd-ui -tmpdir /tmp/tics -branchdir . + + - name: Upload TICS report + if: always() + uses: actions/upload-artifact@v4 + with: + name: tics-report + path: /tmp/tics/ticstmpdir + retention-days: 7