Skip to content

Commit 35d2085

Browse files
ci: add monthly TIOBE run (#85)
The Concierge project has been enrolled into Canonical's TIOBE project, so we can now add a regular run of the TICS tool to submit quality metrics to TIOBE.
1 parent 9324ccd commit 35d2085

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/tiobe.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: TIOBE
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 7 1 * *'
7+
8+
permissions: {}
9+
10+
jobs:
11+
TICS:
12+
runs-on: [self-hosted, reactive, amd64, tiobe, noble]
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
persist-credentials: false
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: 'go.mod'
22+
23+
- name: Install dependencies
24+
run: |
25+
go install honnef.co/go/tools/cmd/staticcheck@v0.5.1
26+
go install github.com/axw/gocov/gocov@v1.1.0
27+
go install github.com/AlekSi/gocov-xml@v1.1.0
28+
29+
# We could store a report from the regular run, but this is cheap to do and keeps this isolated.
30+
- name: Test and generate coverage report
31+
run: |
32+
go test -coverprofile=coverage.out ./...
33+
gocov convert coverage.out > coverage.json
34+
# Annoyingly, the coverage.xml file needs to be in a .coverage folder.
35+
mkdir .coverage
36+
gocov-xml < coverage.json > .coverage/coverage.xml
37+
38+
- name: TICS GitHub Action
39+
uses: tiobe/tics-github-action@009979693978bfefad2ad15c1020066694968dc7 # 3.4.0
40+
with:
41+
mode: qserver
42+
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=GoProjects
43+
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
44+
project: concierge
45+
installTics: true

0 commit comments

Comments
 (0)