Skip to content

Commit

Permalink
tests: update nightly job to use self hosted tiobe runner (canonical#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
sergiocazzolato authored Feb 19, 2025
1 parent 80ce861 commit bc5261c
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

0 comments on commit bc5261c

Please sign in to comment.