Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add a monthly (or on demand) TIOBE reporting workflow #494

Merged
merged 3 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/tiobe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
tonyandrewmeyer marked this conversation as resolved.
Show resolved Hide resolved

- 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
Loading