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: replace codecov with TICS #3485

Merged
merged 3 commits into from
Jul 16, 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
25 changes: 10 additions & 15 deletions .github/workflows/coverage.yml → .github/workflows/tics.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
name: Coverage
name: TICS

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number && format('pr{0}', github.event.number) || github.ref_name }}
cancel-in-progress: true

jobs:
Run:
Expand All @@ -20,7 +14,7 @@ jobs:
NEEDRESTART_SUSPEND: yes
DEBIAN_FRONTEND: noninteractive

timeout-minutes: 60
timeout-minutes: 180
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down Expand Up @@ -50,7 +44,7 @@ jobs:
- name: Ensure ccache size
run: |
# a full build yielded 180M cache
echo "max_size = 250" > ${CCACHE_DIR}/ccache.conf
echo "max_size = 250M" > ${CCACHE_DIR}/ccache.conf

- name: Install dependencies
run: |
Expand Down Expand Up @@ -94,13 +88,14 @@ jobs:
timeout-minutes: 10
run: cmake --build build --target coverage

- name: Send coverage report
uses: codecov/codecov-action@v4
- name: Run TICS analysis
uses: tiobe/tics-github-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: build
fail_ci_if_error: true
verbose: true
mode: qserver
project: mir
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
installTics: true

- if: ${{ failure() && runner.debug }}
name: Setup tmate session
Expand Down
Loading