Skip to content

Commit 5a9b99b

Browse files
committed
ci: add pre-scheduled TiCS code analysis
1 parent aca3b32 commit 5a9b99b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/tiobe.yaml

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

0 commit comments

Comments
 (0)