-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (63 loc) · 1.99 KB
/
code_quality.yml
File metadata and controls
78 lines (63 loc) · 1.99 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Code quality analysis
on:
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- master
push:
branches:
- master
jobs:
# coverage:
# runs-on: ubuntu-latest
# container: docker://jgeudens/qt-linux:6.8.3_build_1
# steps:
# - name: Checkout
# uses: actions/checkout@v6.0.0
# - name: Start display server
# run: bash /start.sh &
# - name: configure safe directory for git
# run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
# - name: Prepare environment for Ninja build with coverage
# run: |
# cmake . -GNinja -DUSE_GCOV=ON
# ninja
# - name: Generate gcovr coverage report
# run: |
# ctest
# gcovr --gcov-ignore-parse-errors --cobertura cobertura.xml
# - name: Run codacy-coverage-reporter
# uses: codacy/codacy-coverage-reporter-action@v1
# with:
# api-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# language: 'CPP'
# coverage-reports: cobertura.xml
# env:
# PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
# if: ${{ !!env.PROJECT_TOKEN }}
clazy:
runs-on: ubuntu-latest
container: docker://jgeudens/qt-linux:6.8.3_build_1
steps:
- uses: actions/checkout@v6.0.0
- name: Configure safe directory for git
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Install clazy
run: |
apt-get update
apt-get install -y clazy
- name: Run clazy
run: bash scripts/run_clazy.sh
clang-tidy:
runs-on: ubuntu-latest
container: docker://jgeudens/qt-linux:6.8.3_build_1
steps:
- uses: actions/checkout@v6.0.0
- name: Configure safe directory for git
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: Install clang-tidy
run: |
apt-get update
apt-get install -y clang-tidy
- name: Run clang-tidy
run: bash scripts/run_clang_tidy.sh