From bc5261c7397ba1732a90914f753b98a46ffb4753 Mon Sep 17 00:00:00 2001 From: Sergio Cazzolato Date: Wed, 19 Feb 2025 11:00:16 -0300 Subject: [PATCH] tests: update nightly job to use self hosted tiobe runner (#15095) * tests: update nightly job to use self hosted tiobe runner This is a new requirement to run nightly the tiobe static analysis using the new self-hosted runner * avoid installing TicsServer * Rename the workflow file and remove 1 dependency * Remove Nightly static code analysis --- .../{nightly.yaml => nightly-static-analysis.yaml} | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) rename .github/workflows/{nightly.yaml => nightly-static-analysis.yaml} (87%) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly-static-analysis.yaml similarity index 87% rename from .github/workflows/nightly.yaml rename to .github/workflows/nightly-static-analysis.yaml index 9c9453e616f..277fe090850 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly-static-analysis.yaml @@ -3,12 +3,12 @@ name: Nightly static code analysis on: workflow_dispatch: schedule: - - cron: '30 0 * * 0' + - cron: '30 0 * * *' jobs: tics: - runs-on: ubuntu-22.04 + runs-on: [self-hosted, linux, amd64, tiobe, jammy] env: GOPATH: ${{ github.workspace }} # Set PATH to ignore the load of magic binaries from /usr/local/bin and @@ -80,15 +80,12 @@ jobs: - name: Install TICS dependencies run: | go install honnef.co/go/tools/cmd/staticcheck@latest - sudo apt install -y pylint - name: TICS scan run: | set -x - export TICSAUTHTOKEN="${{ secrets.TICSAUTHTOKEN }}" - # Install and run TICS - 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 + export TICSAUTHTOKEN="${{ secrets.TICSAUTHTOKEN }}" + source ~/.profile TICSQServer -project snapd -tmpdir /tmp/tics -branchdir "${{ github.workspace }}/src/github.com/snapcore/snapd"