Merge pull request #26 from ModbusScope/dev/subexpressions #96
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |