-
Notifications
You must be signed in to change notification settings - Fork 55
39 lines (33 loc) · 1.18 KB
/
tiobe.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: TIOBE Quality Checks
on:
workflow_dispatch:
schedule:
- cron: '0 7 1 * *'
jobs:
TICS:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
- name: Install dependencies
run: |
go install honnef.co/go/tools/cmd/[email protected]
go install github.com/axw/gocov/[email protected]
go install github.com/AlekSi/[email protected]
# We could store a report from the regular run, but this is cheap to do and keeps this isolated.
- name: Test and generate coverage report
run: |
go test -coverprofile=coverage.out ./...
gocov convert coverage.out > coverage.json
# Annoyingly, the coverage.xml file needs to be in a .coverage folder.
mkdir .coverage
gocov-xml < coverage.json > .coverage/coverage.xml
- name: TICS GitHub Action
uses: tiobe/tics-github-action@v3
with:
mode: qserver
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
project: pebble
installTics: true