Skip to content
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
51 changes: 51 additions & 0 deletions .github/workflows/tics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: TICS

on:
schedule:
- cron: "0 3 * * 2"
workflow_dispatch:

permissions:
contents: read

jobs:
tics:
name: TICS
if: github.ref == 'refs/heads/main'
runs-on: self-hosted-linux-amd64-noble-large-tiobe
timeout-minutes: 120
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Build & layout
working-directory: src
run: ./dev.sh layout Release linux-x64

- name: Run L0 tests with coverage
working-directory: src
run: |
# dev.sh installs its own SDK under _dotnetsdk/<version>
DOTNET_DIR="$(dirname "$(ls "${GITHUB_WORKSPACE}"/_dotnetsdk/*/dotnet | head -n1)")"
export PATH="${DOTNET_DIR}:${HOME}/.dotnet/tools:${PATH}"
dotnet tool update --global dotnet-coverage
Comment thread
cbartz marked this conversation as resolved.
dotnet-coverage collect --output-format cobertura \
Comment thread
cbartz marked this conversation as resolved.
--output "${GITHUB_WORKSPACE}/.coverage/cobertura.xml" "./dev.sh test"
Comment thread
cbartz marked this conversation as resolved.

- name: Locate .NET SDK
run: echo "DOTNET_ROOT=$(dirname "$(ls "${GITHUB_WORKSPACE}"/_dotnetsdk/*/dotnet | head -n1)")" >> "$GITHUB_ENV"

- name: TICS GitHub Action
uses: tiobe/tics-github-action@v3
Comment thread
cbartz marked this conversation as resolved.
with:
mode: qserver
project: github-actions-runner
branchdir: ${{ github.workspace }}
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
installTics: true
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

concurrency:
group: tics
cancel-in-progress: false
Loading