Skip to content

Commit

Permalink
actions: TICS job cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiubelu committed Jan 20, 2025
1 parent ec1cf68 commit a928ad2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/tiobe-tics-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Tiobe TiCS nightly report
name: Tiobe TICS nightly report

on:
workflow_dispatch:
schedule:
- cron: '0 10 * * *'
pull_request:

permissions:
contents: read

jobs:
TiCS:
TICS:
permissions:
contents: read
runs-on: ubuntu-latest
Expand Down Expand Up @@ -43,12 +43,10 @@ jobs:
set -eux -o pipefail
# TiCS requires us to have the test results in cobertura xml format under the
# directory use below
# directory used below
sudo make go.coverage
go install github.com/boumenot/gocover-cobertura@latest
gocover-cobertura < coverage.txt > coverage.xml
mkdir .coverage
mv ./coverage.xml ./.coverage/
gocover-cobertura < coverage.txt > .coverage/coverage.xml
cat ./.coverage/coverage.xml
Expand All @@ -67,13 +65,13 @@ jobs:
- name: Install and Run TiCS
run: |
export TICSAUTHTOKEN=${{ secrets.TICSAUTHTOKEN }}
# NOTE(aznashwan): TiCS install script doesn't define defaults; cannot '-u'
set -ex -o pipefail
export TICSAUTHTOKEN=${{ secrets.TICSAUTHTOKEN }}
# Install the TICS and staticcheck
go install honnef.co/go/tools/cmd/staticcheck@v0.5.1
. <(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/')
TICSQServer -project k8s-dqlite -tmpdir /tmp/tics -branchdir $HOME/work/k8s-dqlite/k8s-dqlite/
TICSQServer -project ${{ github.event.repository.name }} -tmpdir /tmp/tics -branchdir "$GITHUB_WORKSPACE"

0 comments on commit a928ad2

Please sign in to comment.